You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Breaking: dropped compatibility for Nix versions below 2.18.2
Breaking: dropped compatibility for nixpkgs-23.11.
The guidance around using (both) cleanCargoSource and path has been
updated. Namely, it is no longer necessary to call both (e.g. craneLib.cleanCargoSource (craneLib.path ./.)): it is recommended to either
use craneLib.cleanCargoSource ./. directly (if the default source cleaning
is desired) or craneLib.path ./. (if not).
overrideToolchain has been updated to better handle cross-compilation
splicing for a customized toolchain. This means that overrideToolchain
should now be called with a function which constructs said toolchain for any
given pkgs instantiation. For example: craneLib.overrideToolchain (p: p.rust-bin.stable.latest.default)
Fixed
The cross compilation example also hows how to set the TARGET_CC environment
variable which may be required by some build scripts to function properly
vendorCargoDeps and crateNameFromCargoToml do their best to avoid IFD when src is the result of lib.cleanSourceWith (and by extension cleanCargoSource)
removeReferencesToVendoredSources handles the edge case where cargoVendorDir does not point to a path within the Nix store
It is now possible to use .overrideScope to change what instance of craneUtils will be used during vendoring.