crates.io-index
Registry index for crates.io
The crates.io index is the registry metadata that cargo uses to fetch Rust crates
The repository mirrors the package index as both a git repo and a sparse HTTP endpoint, and its format is specified in the Cargo Book.
What the index contains
The crates.io package index holds the metadata that cargo needs to download crates and resolve their dependencies. Rather than storing the crate files themselves, it stores the records that let the Rust build tool find versions, dependencies and checksums. The README states that the index is available in two forms: an HTTP API at index.crates.io that uses the sparse protocol described in an RFC, and a git repository at github.com/rust-lang/crates.io-index. The index format itself is documented in detail in the Cargo Book, which is the authoritative reference for how each line is structured. The project is maintained by the crates.io team, which is part of the Rust dev tools governance group. Because the index is infrastructure rather than an application, the README is short and points almost entirely to external documentation.
How consumers reach it
Developers rarely interact with this repository directly. When a cargo command resolves dependencies, it reads from the index, and modern cargo prefers the sparse HTTP endpoint at index.crates.io because it avoids cloning the entire git history. The git repository remains available for tools or workflows that still depend on it, and the README links to both. The Cargo Book page on the registry index explains the exact byte layout, including how crate names map to paths and how version records are encoded. The separation between the metadata index and the actual crate storage is a deliberate design: the index stays relatively small and cheap to query, while crate files live in separate object storage behind the same crates.io service.
Governance and scale
The repository carries 737 stars and 271 forks with two open issues at the time of this writing, and the default branch is master. It is owned by the rust-lang organization, which signals that it is core Rust infrastructure rather than a personal project. The crates.io team is responsible for its operation, and changes to the index format go through the Rust RFC process rather than ad hoc edits. The practical takeaway for a Rust developer is that this repository is the source of truth for registry metadata, but day to day work happens through cargo and the crates.io website, with the sparse endpoint at index.crates.io being the path most builds now take.
Editorial conclusion
The crates.io index lives on the master branch with 737 stars and is maintained by the Rust crates.io team as both a git repository and a sparse HTTP endpoint at index.crates.io, with its format documented in the Cargo Book.
Community notes