Struct crates_index::Index [] [src]

pub struct Index { /* fields omitted */ }

Wrapper around managing the crates.io-index git repository

Methods

impl Index
[src]

Construct a new Index supplying a path where the index lives or should live

Determines if a crates.io repository exists at self.path

Downloads the index to the path specified from the constructor

Assumes the index already exists at self.path, and updates it

Downloads the index to the path specified from the constructor

Retrieve a single crate by name (case insensitive) from the index

Retrieve an iterator over all the crates in the index

Returns all the crate index file paths in the index