#index #dependencies #packaging #meta #crates

crates-index

Library for retrieving and interacting with the crates.io index

60 releases (27 stable)

3.12.1 Jan 5, 2026
3.11.0 Jul 30, 2025
3.10.0 Apr 27, 2025
3.8.0 Mar 23, 2025
0.1.2 May 27, 2015

#12 in #crate

Download history 43203/week @ 2025-10-02 38418/week @ 2025-10-09 39774/week @ 2025-10-16 37199/week @ 2025-10-23 31344/week @ 2025-10-30 28753/week @ 2025-11-06 31703/week @ 2025-11-13 27345/week @ 2025-11-20 21370/week @ 2025-11-27 29993/week @ 2025-12-04 29151/week @ 2025-12-11 19442/week @ 2025-12-18 7917/week @ 2025-12-25 18287/week @ 2026-01-01 37886/week @ 2026-01-08 34227/week @ 2026-01-15

100,237 downloads per month
Used in fewer than 32 crates

Apache-2.0

110KB
2K SLoC

crates-index

crates-index on Crates.io

Library for retrieving and interacting with the crates.io registry index using either the git or sparse protocol.

The index contains metadata for all Rust libraries and programs published on crates.io: their versions, dependencies, and feature flags.

Documentation

Example

let index = crates_index::GitIndex::new_cargo_default()?;

for crate_releases in index.crates() {
    let _ = crate_releases.most_recent_version(); // newest version
    let crate_version = crate_releases.highest_version(); // max version by semver
    println!("crate name: {}", crate_version.name());
    println!("crate version: {}", crate_version.version());
}

Changelog

Please find the changelog in CHANGELOG.md.

Similar crates

  • tame-index - a hard fork with many improvements and advantages
  • crates_io_api - a way to talk to the HTTP API of crates.io

License

Licensed under version 2 of the Apache License

Dependencies

~2–25MB
~369K SLoC