Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 2.04 KB

File metadata and controls

27 lines (20 loc) · 2.04 KB

crate2nix

crate2nix builds your cargo-based rust project crate-by-crate with nix.

You can

  • save time by only rebuilding changed crates hermetically in CI, and
  • use cargo/rust-analyzer locally for a fast developing loop.

➡️ Read more ⬅️

Timewave Fork

This fork of crate2nix includes various fixes and features. Many thanks to @hallettj for the first two.

Flake.parts module

This fork also includes a crate2nix flake.parts module that handles importing Cargo.nix and exporting all the crates for you. It also has cross compilation support, where crateOverrides for crates within the repository are inspected to see if they set rust, cargo, pkgs or target and if so Cargo.nix will be re-imported with the new target/toolchain.

tests-nix-linux tests-nix-macos Crate