extern crate crates_api; use crates_api::{get_crate, get_versions}; fn main () { let crate_data = get_crate("libc").unwrap(); println!("{}", crate_data.metadata.downloads); for version in get_versions("libc").unwrap() { println!("{}", version.num); } }