pub fn info_for_one_crate(crate_name: &str) -> anyhow::Result<Vec<(String, bool)>> {
    let crate_info = INDEX
        .crate_(crate_name)
        .context(format!("Cannot find crate name in registry: {}", crate_name))?;
    let mut vec = vec![];
    for x in crate_info.versions().iter() {
        vec.push((x.version().to_string(), x.is_yanked()));
    }
    Ok(vec)
}
/// info of all versions for one crate
info of all versions for one crate
info of all versions for one crate
pub fn info_for_one_crate(crate_name: &str) -> anyhow::Result<Vec<(String, bool)>> {
    let crate_info = INDEX
        .crate_(crate_name)
        .context(format!("Cannot find crate name in registry: {}", crate_name))?;
    let mut vec = vec![];
    for x in crate_info.versions().iter() {
        vec.push((x.version().to_string(), x.is_yanked()));
    }
    Ok(vec)
}
pub fn info_for_one_crate ( crate_name : & str ) -> anyhow :: Result < Vec < ( String , bool ) > > { let crate_info = INDEX . crate_ ( crate_name ) . context ( format ! ( " " crate_name ) ) ? ; let mut vec = vec ! [ ] ; for x in crate_info . versions ( ) . iter ( ) { vec . push ( ( x . version ( ) . to_string ( ) , x . is_yanked ( ) ) ) ; } Ok ( vec ) }
info of all versions for one crate
info of all versions for one crate
crate_name
&str