Function cargo_update::ops::crate_versions
source · [−]pub fn crate_versions<R: Read>(package_desc: &mut R) -> Vec<Semver>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
Expand description
Parse the raw crate descriptor from the repository into a collection of Semver
s.
Examples
let versions = crate_versions(&mut File::open(desc_path).unwrap());
println!("Released versions of checksums:");
for ver in &versions {
println!(" {}", ver);
}