We’re happy to announce crate2nix 0.15.0 after almost 2 years!
GitHub - nix-community/crate2nix: crate2nix builds your cargo-based rust project crate-by-crate with nix generates Nix build files for Rust/Cargo projects, enabling per-crate hermetic builds with proper caching.
New features
- Private registries support - Use crate2nix with your private Cargo registries (Adding support for private registries by P-E-Meunier · Pull Request #366 · nix-community/crate2nix · GitHub)
- Custom toolchain in generatedCargoNix - Select which Rust toolchain to use for IFD builds (generatedCargoNix: allow selected toolchain by bengsparks · Pull Request #390 · nix-community/crate2nix · GitHub)
- extraTargetFlags parameter - Pass custom cfg conditions for dependency resolution (feat: add extraTargetFlags parameter for custom cfg conditions by domenkozar · Pull Request #416 · nix-community/crate2nix · GitHub)
Notable fixes
- Build-dependencies resolution when cross-compiling
- Aliased git dependencies when multiple versions are referenced
- Git dependencies with wildcard workspace members and nested subcrates
- Parsing checksums from v1 manifests with latest cargo
Links
- Release 0.15.0 · nix-community/crate2nix · GitHub
- CHANGELOG | crate2nix
- Welcome to crate2nix | crate2nix
- crates.io: Rust Package Registry
Thanks to all contributors: @P-E-Meunier, @bengsparks, @pnmadelaine, @weihanglo, @hallettj, @jrobsonchase, @Pacman99, @qknight!