Nix Rust

Open-source Nix projects categorized as Rust

Top 12 Nix Rust Projects

  • dream2nix

    Automate reproducible packaging for various language ecosystems [maintainer=@DavHau]

    Project mention: flox – Harness the Power of Nix | /r/NixOS | 2023-02-07

    (I'm on the flox team) we'd love to support that and it's something we've talked about! We already support auto-generation for some languages like Rust because they have a lockfile (e.g. Cargo.lock), but it's a bit trickier for a requirements.txt. We hope at some point to contribute to/integrate with upstream efforts like dream2nix which have auto-generation as their goal

  • 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
  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • rust-overlay

    Pure and reproducible nix overlay of binary distributed rust toolchains

    Project mention: Diving straight into flakes with no channels? | /r/NixOS | 2023-04-13

    real-world example: https://github.com/oxalica/rust-overlay/blob/master/flake.nix

  • alejandra

    The Uncompromising Nix Code Formatter

    Project mention: How to use Alejandra as Nix formmater | /r/neovim | 2023-04-21

    I hope someone using lazy.nvim, has a setup they can share, where they are using alejandra as their nix formmater. I've read the instruction, but can't get it to work other than using the manual command. Hoping to integrate it into the LSP automatically.

  • fenix

    Rust toolchains and rust-analyzer nightly for Nix [maintainer=@figsoda] (by figsoda)

    Project mention: Use nix-shell or systemPackages | /r/NixOS | 2023-07-09

    Rustup works as is. Though note that Nix supplants all such toolchain installers such as Rustup, nvm, etc. I.e. instead of Rustup there is fenix.

  • rnix-parser

    A Nix parser written in Rust [maintainer=@oberblastmeister]

  • crate2nix

    nix build file generator for rust crates

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

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

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

  • rust-nix-template

    Rust project template with Nix (Flakes) and VSCode support

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

  • lime

    🧶 no bs url shortening (by Fuwn)

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-07-09.

Nix Rust related posts

Index

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

Project Stars
1 dream2nix 635
2 crane 554
3 rust-overlay 550
4 alejandra 471
5 fenix 411
6 rnix-parser 298
7 crate2nix 280
8 cargo2nix 248
9 nix-cargo-integration 144
10 rust-nix-template 139
11 nocargo 99
12 lime 5
Updating dependencies is time-consuming.
Solutions like Dependabot or Renovate update but don't merge dependencies. You need to do it manually while it could be fully automated! Add a Merge Queue to your workflow and stop caring about PR management & merging. Try Mergify for free.
blog.mergify.com