Cargo VS crates.io

Compare Cargo vs crates.io and see what are their differences.

Cargo

The Rust package manager (by rust-lang)

crates.io

The Rust package registry (by rust-lang)
Our great sponsors
  • Mergify - Updating dependencies is time-consuming.
  • SonarLint - Clean code begins in your IDE with SonarLint
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
Cargo crates.io
247 641
10,978 2,554
2.4% 1.6%
9.8 9.9
about 19 hours ago 5 days ago
Rust Rust
Apache License 2.0 Apache License 2.0
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.

Cargo

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

crates.io

Posts with mentions or reviews of crates.io. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-18.
  • Appwrite + Rust: Build APIs without technical overhead
    2 projects | dev.to | 18 Aug 2023
    serde_json = "1.0" is a crate that uses the serde crate to manipulate JSON and vice versa.
  • Does anyone have a cloned copy of lib.rs, or know of a forked repo/archive/crate name?
    2 projects | /r/rust | 6 Aug 2023
    Looking for crate on crates.io
  • Is it Ok to push a crate that is part of a github repository?
    2 projects | /r/rust | 9 Jul 2023
    That is just fine, just keep in mind that crates.io will only see files within the actual crate you are publishing, for example it will not read the repo-level README.md. Here is one of my crates that is in a sub-directory: GitHub crates.io
  • Released my first crate ~20 hours ago; already downloaded 12 times. Who would know about it?
    2 projects | /r/rust | 8 Jul 2023
    I released my first crate on crates.io yesterday and haven't advertised it or even started using the crates.io version in my code yet, but the crate has been downloaded 12 times. Is there some sort of audit process or automated caching that goes on with crates that would cause this to happen?
  • What is the "a" crate?
    6 projects | /r/rust | 6 Jul 2023
    crates.io having no plan for namesquatters (and repeatedly refusing to use one) is the worst decision imaginable
    6 projects | /r/rust | 6 Jul 2023
    Hard to say what the intentions were, but in this case probably just trying out how Cargo and crates.io work, and having not enough manners to clean up after themselves.
    6 projects | /r/rust | 6 Jul 2023
    So are people prompted to give an irrevocable licence to crates.io somewhere?
    6 projects | /r/rust | 6 Jul 2023
    This could all be fixed by just having accounts and namespaces. The problem is a crate appearing high on results for a search term on crates.io, if there are similar crates they should be able to use the same name and not be discriminated against on the basis of how close their name is to what people will search for
    6 projects | /r/rust | 6 Jul 2023
    What is the "a" crate on crates.io? It seems to have many downloads, so what does it do? It has no dependencies or dependants - which seems to indicate people are either just downloading out of curiosity or not using it in published crates. Is this an example of name squatting? What does this crate do?
  • I am not happy with the `crates.io` search.
    7 projects | /r/rust | 5 Jul 2023
    Imo crates.io is basically just the rusty pypi.org which isn't a great thing in my experience.

What are some alternatives?

When comparing Cargo and crates.io you can also consider the following projects:

RustCMake - An example project showing usage of CMake with Rust

Clippy - A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/

RustScan - 🤖 The Modern Port Scanner 🤖

docs.rs - crates.io documentation generator

plotters - A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀

opencv-rust - Rust bindings for OpenCV 3 & 4

cargo-outdated - A cargo subcommand for displaying when Rust dependencies are out of date

cargo-check

overflower - A Rust compiler plugin and support library to annotate overflow behavior

trunk - Build, bundle & ship your Rust WASM application to the web.

gtk4-rs - Rust bindings of GTK 4

rust-analyzer - A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer]