50 releases (17 stable)
new 3.3.0 | Nov 14, 2024 |
---|---|
3.1.0 | Jul 30, 2024 |
2.10.1 | May 28, 2024 |
2.6.0 |
|
0.1.2 |
|
#1308 in Development tools
82,955 downloads per month
Used in fewer than 30 crates
99KB
1.5K
SLoC
crates-index
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.
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 advantagescrates_io_api
- a way to talk to the HTTP API of crates.io
License
Licensed under version 2 of the Apache License
Dependencies
~1–14MB
~194K SLoC