44 releases (11 stable)

2.8.0 Apr 15, 2024
2.6.0 Feb 25, 2024
2.4.0 Dec 30, 2023
2.3.0 Nov 6, 2023
0.1.2 May 27, 2015

#437 in Development tools

Download history 17044/week @ 2024-01-14 18375/week @ 2024-01-21 18920/week @ 2024-01-28 21220/week @ 2024-02-04 20295/week @ 2024-02-11 20967/week @ 2024-02-18 18745/week @ 2024-02-25 19060/week @ 2024-03-03 18412/week @ 2024-03-10 20792/week @ 2024-03-17 20625/week @ 2024-03-24 24668/week @ 2024-03-31 19958/week @ 2024-04-07 20733/week @ 2024-04-14 20779/week @ 2024-04-21 19950/week @ 2024-04-28

82,887 downloads per month
Used in fewer than 30 crates

Apache-2.0

98KB
1.5K 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::Index::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

~1–15MB
~202K SLoC