rust-crates-index

crates-index on Crates.io

Library for retrieving and interacting with the crates.io index

Documentation

Much of this code was extracted from github.com/huonw/crates.io-graph

Examples

```rust extern crate crates_index;

let index = cratesindex::Index::new("index".into()); if !index.exists() { index.retrieve().expect("Could not retrieve crates.io index"); } for crate_ in index.crates() { let latestversion = crate.latestversion(); println!("crate name: {}", latestversion.name()); println!("crate version: {}", latest_version.version()); } ```

License

Licensed under version 2 of the Apache License