Skip to content
vic

nix-community/crate2nix

rebuild only changed crates in CI with crate2nix and nix

nix-community/crate2nix.json
{
"createdAt": "2019-03-24T22:00:59Z",
"defaultBranch": "master",
"description": "rebuild only changed crates in CI with crate2nix and nix",
"fullName": "nix-community/crate2nix",
"homepage": "https://nix-community.github.io/crate2nix/",
"language": "Nix",
"name": "crate2nix",
"pushedAt": "2025-11-26T13:19:08Z",
"stargazersCount": 442,
"topics": [
"cache",
"cargo",
"ci",
"nix",
"nixos",
"rust"
],
"updatedAt": "2025-11-26T16:58:20Z",
"url": "https://github.com/nix-community/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