nocargo VS crane

Compare nocargo vs crane and see what are their differences.

nocargo

[alpha] Build Rust crates with Nix Build System. (by oxalica)

crane

A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching. (by ipetkov)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
nocargo crane
2 12
119 743
- -
3.5 9.2
about 2 months ago 4 days ago
Nix Nix
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

nocargo

Posts with mentions or reviews of nocargo. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-24.
  • Nix shell related questions (for rust)
    5 projects | /r/NixOS | 24 Dec 2022
    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.
  • Perfect Docker Images for Rust with Nix
    7 projects | /r/rust | 1 Sep 2022
    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.)

crane

Posts with mentions or reviews of crane. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-25.

What are some alternatives?

When comparing nocargo and crane you can also consider the following projects:

poe-stash-indexer - An indexer for Path of Exile's Public Stash Tab API and additional tooling

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

rust-shell - Nix shells for Rust development

api - 🎭 API

fedimint - Federated E-Cash Mint

yarnpnp2nix - A performance focused and space efficient way of packaging NodeJS applications with Nix

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

dream2nix - Simplified nix packaging for various programming language ecosystems [maintainer=@DavHau]

cargo-auditable - Make production Rust binaries auditable

cargo-quick - (currently vapourware) A cargo subcommand to quickly bootstrap your dependency tree on first build

crate2nix - rebuild only changed crates in CI with crate2nix and nix