[][src]Function cargo_update::ops::get_index_path

pub fn get_index_path(
    cargo_dir: &Path,
    registry_url: &str
) -> Result<PathBuf, Cow<'static, str>>

Try to get the location of the registry index corresponding ot the given URL.

Examples

let index = get_index_path(&cargo_dir, "https://github.com/rust-lang/crates.io-index").unwrap();

// Use find_package_data() to look for packages