crates-index 2.0.0

Library for retrieving and interacting with the crates.io index
Documentation

crates-index

crates-index on Crates.io

Library for retrieving and interacting with the crates.io registry git-based index.

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

License

Licensed under version 2 of the Apache License