Skip to content

timewave-computer/crate2nix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

rebuild only changed crates in CI with crate2nix and nix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nix 71.6%
  • Rust 26.9%
  • Shell 1.5%