Perfect Docker Images for Rust with Nix

This page summarizes the projects mentioned and recommended in the original post on /r/rust

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
  • cargo-auditable

    Make production Rust binaries auditable

    The JSON schema does not map to any existing format. We tried, but they just aren't suitable for the task. The existing formats are not designed for this, and so end up being verbose, and don't play nice with reproducible builds (e.g. SPDX includes a timestamp). And you still need the binary parsing step and the zlib decompression step, so embedding SPDX doesn't end up making it much easier to consume than the custom format, which is dead simple and maps very well to data structures that vulnerability scanners already use.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • rustshop

    Rust Shop is a fake cloud-based software company that you can fork.

    Many thanks to u/dpc_pw, whose notes on GitHub were my starting point for the flake definition. (I also just realized I unwittingly gave my article an almost-identical title by the time I was done refining it, so I’m more indebted to them than I thought.)

  • crane

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

    If you haven't already, I recommend checking out crane for building extensible workflows using cargo and Nix (e.g. running clippy, cargo-audit, cargo-nextest, cargo-tarpaulin, etc.)

  • nocargo

    [alpha] Build Rust crates with Nix Build System.

    Thank you. It looks very useful, so I’ll give it a try. Do you know, offhand, whether I can use crane to build a dependency specified in Cargo.toml with extra settings? I have a more complicated Rust application I’m trying to build with Nix. The solution I’ve arrived at for the moment is building with nocargo just so I can override OUT_DIR when building opencv, but it doesn’t work with LTO and the end result is inferior to my starting point. (If there’s a way to customize the opencv build without needing any extra packages, I’d love to hear about that too.)

  • fedimint

    Federated E-Cash Mint

    I can second that. If you're looking for a non-trivial reference project that uses crane: - I'm working on this project full time now and keep tweaking and optimizing as the real needs and requirements arise.

  • opencv-rust

    Rust bindings for OpenCV 3 & 4

    I’m trying to get around a known build issue—it would be great for it to be fixed upstream, but I don’t have any control over it except for setting OUT_DIR during its compilation.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Transitioning to Rust as a company

    8 projects | /r/rust | 2 Jun 2023
  • How to package a Rust app using Nix

    1 project | | 6 Jan 2023
  • 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
  • Introducing Crane: Composable and Cacheable Builds with Cargo and Nix

    3 projects | /r/rust | 8 May 2022