Crate crates_index[][src]

Expand description

Library for retrieving and interacting with the index.


let index = crates_index::Index::new_cargo_default();
if !index.exists() {
   index.retrieve().expect("Could not fetch index");
for crate_ in index.crates() {
   let latest_version = crate_.latest_version();
   println!("crate name: {}",;
   println!("crate version: {}", latest_version.version());


Access to a “bare” git index that fetches files directly from the repo instead of local checkout

Opened instance of BareIndex

A single crate that contains many published versions

Constructed from Index::crates

A single dependency of a specific crate version

Wrapper around managing the git repository

Global configuration of an index, reflecting the contents of config.json as specified at

A single version of a crate published to the index