pub fn yanked_for_one_crate(crate_name: &str) -> anyhow::Result<Vec<String>> {
    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() {
        if x.is_yanked() {
            vec.push(x.version().to_string())
        }
    }
    Ok(vec)
}
/// list only yanked versions for one crate
list only yanked versions for one crate
list only yanked versions for one crate
pub fn yanked_for_one_crate(crate_name: &str) -> anyhow::Result<Vec<String>> {
    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() {
        if x.is_yanked() {
            vec.push(x.version().to_string())
        }
    }
    Ok(vec)
}
pub fn yanked_for_one_crate ( crate_name : & str ) -> anyhow :: Result < Vec < String > > { let crate_info = INDEX . crate_ ( crate_name ) . context ( format ! ( " " crate_name ) ) ? ; let mut vec = vec ! [ ] ; for x in crate_info . versions ( ) . iter ( ) { if x . is_yanked ( ) { vec . push ( x . version ( ) . to_string ( ) ) } } Ok ( vec ) }
list only yanked versions for one crate
list only yanked versions for one crate
crate_name
&str