0.23.3 - 2026-04-16
Changed
downloadCargoPackagenow extracts tarballs with--no-same-owner.
Ultimately this should make no difference since the Nix store will reset all
ownership permissions anyway, but it may avoid some spurious errors on certain
systems.buildPackageandbuildDepsOnlynow has acargoBuildExtraArgsoption for
passing arguments specifically tocargoBuildCommand.cargoNextestnow acceptscargoNextestArchiveExtraArgsfor passing
flags tocargo nextest archiveinvocations.writeTOMLnow, by default, refers towriteTOMLViaCraneUtilsto minimize
dependency chains on non-Rust projects. Bringing back the old behavior (using
remarshal) can be done viacraneLibRemarshal = craneLib.overrideScope (final: prev: { writeTOML = final.writeTOMLViaRemarshal; });
Deprecations
mkCargoDerivation(and by extension all utilities which delegate to it) no
longer support overriding thestdenvused formkDerivationvia an
attribute. Instead any such overrides should be done at thecraneLiblevel
via the newstdenvSelectorfunction. For example:(crane.mkLib pkgs).overrideScope (final: prev: { stdenvSelector = p: p.clangStdenv; });