pub fn max_version_from_registry_index(crate_name: &str) -> anyhow::Result<String> {
    let crate_info = INDEX
        .crate_(crate_name)
        .context(format!("Cannot find crate name in registry: {}", crate_name))?;
    // max version by semver
    let crate_version = crate_info.highest_version();
    Ok(crate_version.version().to_string())
}
/// max version from registry index cache
max version from registry index cache
max version from registry index cache
pub fn max_version_from_registry_index(crate_name: &str) -> anyhow::Result<String> {
    let crate_info = INDEX
        .crate_(crate_name)
        .context(format!("Cannot find crate name in registry: {}", crate_name))?;
    // max version by semver
    let crate_version = crate_info.highest_version();
    Ok(crate_version.version().to_string())
}
pub fn max_version_from_registry_index ( crate_name : & str ) -> anyhow :: Result < String > { let crate_info = INDEX . crate_ ( crate_name ) . context ( format ! ( " " crate_name ) ) ? ; // max version by semver let crate_version = crate_info . highest_version ( ) ; Ok ( crate_version . version ( ) . to_string ( ) ) }
max version from registry index cache
max version from registry index cache
crate_name
&str