Nix Cargo

Open-source Nix projects categorized as Cargo

Top 6 Nix Cargo Projects

  1. crane

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

    Project mention: Posta: Building a Social Blogging Backend with SurrealDB, Nix, and Nushell | dev.to | 2025-05-13

    While doing research for these projects I came across some small bugs in another project. I made the fixes and opened some PRs which were accepted.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. naersk

    Build Rust projects in Nix - no configuration, no code generation, no IFD, sandbox friendly.

  4. crate2nix

    rebuild only changed crates in CI with crate2nix and nix

    Project mention: Why We're Moving on from Nix | news.ycombinator.com | 2025-06-07

    > Since package builds of node/python/ruby packages depend on stuff outside of the package dir in the tree, you need that mapping between versions and commits.

    > Using nix without nixpkgs may be fine for more scoped use but seems hard to justify for a platform like Railway.

    Nixpkgs isn't all-or-nothing. You're right that Nixpkgs itself rarely packages more than one version of something, but the standard approach for "language package managers" is that you use a tool like crate2nix[0] which automatically generates pinned derivations for all of your dependencies.[1] For system dependencies which aren't covered by your language package manager.. you're basically in the same position as for something like Debian: you can either pull it from Nixpkgs (and give up control beyond "which Nixpkgs am I on?") or you can write/fork your own package. Or you can pull specific packages from specific Nixpkgs checkouts and splice them into your "main" Nixpkgs version as an overlay (though this is definitely getting into the Weird Territory(tm)).

    [0]: https://github.com/nix-community/crate2nix

    [1]: For example: https://github.com/stackabletech/secret-operator/blob/30f0eb...

  5. cargo2nix

    Granular builds of Rust projects for Nix

  6. nix-cargo-integration

    Library to easily and effortlessly integrate Cargo projects with Nix.

  7. nocargo

    [alpha] Build Rust crates with Nix Build System.

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).

Nix Cargo discussion

Log in or Post with

Nix Cargo related posts

  • Embrace the Power of Nix for Your Python + Rust Workflow

    2 projects | dev.to | 24 Jul 2024
  • Help with building a 32bit library with cargo

    3 projects | /r/NixOS | 7 Apr 2023
  • Rust cross-compilation without struggles by using the nixpkgs-cross-overlay

    4 projects | /r/rust | 11 Mar 2023
  • How to package a Rust app using Nix

    1 project | dev.to | 6 Jan 2023
  • Nix shell related questions (for rust)

    5 projects | /r/NixOS | 24 Dec 2022
  • How to setup devShell for rust development with bevy?

    2 projects | /r/NixOS | 14 Nov 2022
  • Nix & Rust - cargo2nix 0.11.0 released

    4 projects | /r/rust | 15 May 2022
  • A note from our sponsor - SaaSHub
    www.saashub.com | 15 Jun 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

# Project Stars
1 crane 1,081
2 naersk 828
3 crate2nix 421
4 cargo2nix 421
5 nix-cargo-integration 201
6 nocargo 166

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Nix is
the 28th most popular programming language
based on number of references?