Drop once_cell from all direct crate deps#93095
Drop once_cell from all direct crate deps#93095mmastrac wants to merge 1 commit intommastrac/turbotasks-const-vtablefrom
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merging this PR will degrade performance by 3.75%
Performance Changes
Comparing Footnotes
|
c69cc10 to
075f720
Compare
Migrate remaining workspace uses of `once_cell` to their std equivalents, now stable on this nightly toolchain: - 32 `once_cell::sync::Lazy` → `std::sync::LazyLock` - 1 `once_cell::sync::OnceCell` → `std::sync::OnceLock` (`turbopack-node/src/worker_pool/worker_thread.rs`) Remove the `once_cell` entries from every crate's `Cargo.toml` and from the workspace root `[workspace.dependencies]` table. `Cargo.lock` still references `once_cell` transitively (via `regex`, `backtrace`, `rand`, etc.) — that's unavoidable and unrelated to this crate's surface. No behavior changes: the std types have the same API we use (`::new`, `::force`, `.get`, `.set`, `.get_or_init`, and `Deref`).
075f720 to
015ec5e
Compare
bd2527c to
b4c897f
Compare

What
Purely mechanical change from once_cell to stdlib primitives.