43 releases (10 stable)

new 2.6.0 Feb 25, 2024
2.4.0 Dec 30, 2023
2.3.0 Nov 6, 2023
2.0.0 Jul 29, 2023
0.1.2 May 27, 2015

#3 in #crate

Download history 17614/week @ 2023-11-05 18927/week @ 2023-11-12 14269/week @ 2023-11-19 16913/week @ 2023-11-26 16407/week @ 2023-12-03 18066/week @ 2023-12-10 14557/week @ 2023-12-17 13361/week @ 2023-12-24 14963/week @ 2023-12-31 16941/week @ 2024-01-07 18073/week @ 2024-01-14 19504/week @ 2024-01-21 20129/week @ 2024-01-28 22241/week @ 2024-02-04 21597/week @ 2024-02-11 22244/week @ 2024-02-18

87,579 downloads per month
Used in 51 crates (30 directly)

Apache-2.0

95KB
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–16MB
~211K SLoC