crates-index

Crates.iocrates-index
lib.rscrates-index
version3.2.0
sourcesrc
created_at2015-05-27 04:22:23.122022
updated_at2024-08-23 13:05:03.977512
descriptionLibrary for retrieving and interacting with the crates.io index
homepagehttps://crates.io/crates/crates-index
repositoryhttps://github.com/frewsxcv/rust-crates-index
max_upload_size
id2231
size302,219
Sebastian Thiel (Byron)

documentation

https://docs.rs/crates-index/

README

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

Commit count: 472

cargo fmt