Skip to content

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

License

Notifications You must be signed in to change notification settings

jtgeibel/rust-crates-index

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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 most_recent = crate_.latest_version();
    println!("crate name: {}", most_recent.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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%