#build-cargo #cargo-build #nix #ci #caching

build crate2nix

crate2nix generates nix (as in NixOS) build files for rust using cargo

18 unstable releases (6 breaking)

0.13.0 Jan 7, 2024
0.12.0 Dec 17, 2023
0.11.1 Oct 22, 2023
0.10.0 Jun 12, 2021
0.7.0-alpha.4 Nov 30, 2019

#199 in Unix APIs

45 downloads per month

Apache-2.0

145KB
3.5K SLoC

Rust 3K SLoC // 0.0% comments Tera 368 SLoC // 0.0% comments

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 ⬅️

tests-nix-linux tests-nix-macos Crate


lib.rs:

crate2nix

Internal library for the crate2nix binary. This is not meant to be used separately, I just enjoy writing doc tests ;)

Repository

Dependencies

~13MB
~265K SLoC