jyn514 / rust-crates-index

Rust library for retrieving and interacting with the crates.io index

Home Page:https://docs.rs/crates-index/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

extern crate crates_index;

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

Similar crates

License

Licensed under version 2 of the Apache License

About

Rust library for retrieving and interacting with the crates.io index

https://docs.rs/crates-index/

License:Apache License 2.0


Languages

Language:Rust 100.0%