Latest Results
refactor: replace cfg-if dependency with std cfg_select! macro (#1290)
Replaces the `cfg-if` crate with `std::cfg_select!`, which was
stabilized in Rust 1.95 (its rustdoc even carries `doc(alias =
"cfg-if")` as the intended replacement). This drops one dependency.
- Sites with real platform/feature branching (`metadata`,
`symlink_metadata`, `read_link`, `Cache::canonicalize`, `normalize_with`
wasm handling, `ResolverGeneric::new`/`clone_with_options`) become
`cfg_select!` arms; the two `let` sites use it in expression position,
which `cfg_if!` could not do.
- The five Yarn-PnP early-return guards in `FileSystemOs` and the
non-wasm specifier shadowing in `require_impl` had no else branch, so
they become plain `#[cfg]` attributes instead of a macro with an empty
fallback arm.
Verified with `just ready` (fmt, typos, check incl. s390x target, tests
for default and `--all-features`, napi build + node tests, pnp tests,
clippy `--deny warnings`, doc). Windows and wasm arms are
token-identical to before and are covered by CI.
Stacked on #1289 (MSRV 1.95.0 bump); retargets to `main` once that
merges. Latest Branches
+2%
perf/shrink-release-binaries +1%
release-plz-2026-07-03T16-00-13Z -3%
© 2026 CodSpeed Technology