Nix Cargo

Open-source Nix projects categorized as Cargo

Top 6 Nix Cargo Projects

  • crane

    A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.

    Project mention: Can rustc generate identical binaries, with the same hash, from the same souce code? | /r/rust | 2023-06-25
  • naersk

    Build rust crates in Nix. No configuration, no code generation, no IFD. Sandbox friendly. [maintainer: @Patryk27]

    Project mention: Help with building a 32bit library with cargo | /r/NixOS | 2023-04-07

    i would also recommend using crane or naersk since iirc rustPlaform.buildRustPackage can mangle some of these options (or maybe i just did something wrong lol)

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at

  • crate2nix

    nix build file generator for rust crates

    Project mention: Transitioning to Rust as a company | /r/rust | 2023-06-02
  • cargo2nix

    Granular caching, development shell, Nix & Rust integration

    Project mention: Transitioning to Rust as a company | /r/rust | 2023-06-02
  • nix-cargo-integration

    Library to easily and effortlessly integrate Cargo projects with Nix.

  • nocargo

    [alpha] Build Rust crates with Nix Build System.

    Project mention: Nix shell related questions (for rust) | /r/NixOS | 2022-12-24

    If you want to iterate with nix instead of cargo, crate2nix and cargo2nix provides more caching and more fine control over your dependencies. I haven't used these two so you would have to decide for yourself. You may also want to try out nocargo for something more experimental.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-06-25.

Nix Cargo related posts


What are some of the best open-source Cargo projects in Nix? This list will help you:

Project Stars
1 crane 557
2 naersk 552
3 crate2nix 282
4 cargo2nix 248
5 nix-cargo-integration 144
6 nocargo 99
Free Global Payroll designed for tech teams
Building a great tech team takes more than a paycheck. Zero payroll costs, get AI-driven insights to retain best talent, and delight them with amazing local benefits. 100% free and compliant.