#nix #cargo #build #ci #cache

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

#164 in Unix APIs

Download history 18/week @ 2023-11-06 4/week @ 2023-11-13 24/week @ 2023-11-20 41/week @ 2023-11-27 2/week @ 2023-12-04 23/week @ 2023-12-11 28/week @ 2023-12-18 52/week @ 2023-12-25 27/week @ 2024-01-01 15/week @ 2024-01-08 8/week @ 2024-01-15 18/week @ 2024-01-22 72/week @ 2024-01-29 1/week @ 2024-02-05 82/week @ 2024-02-12 398/week @ 2024-02-19

553 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
~264K SLoC