Function cargo_update::ops::crate_versions[][src]

pub fn crate_versions<R: Read>(package_desc: &mut R) -> Vec<Semver>
Expand description

Parse the raw crate descriptor from the repository into a collection of Semvers.

Examples

let versions = crate_versions(&mut File::open(desc_path).unwrap());

println!("Released versions of checksums:");
for ver in &versions {
    println!("  {}", ver);
}