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

```rust let index = cratesindex::Index::newcargo_default()?;

for cratereleases in index.crates() { let _ = cratereleases.mostrecentversion(); // newest version let crateversion = cratereleases.highestversion(); // max version by semver println!("crate name: {}", crateversion.name()); println!("crate version: {}", crate_version.version()); } ```

Migration from 0.19 to 1.0.0

Migration from 0.18

It should work without any code changes. Only the git2 and toml dependencies were updated.

Migration from 0.16 and 0.17

Similar crates

License

Licensed under version 2 of the Apache License