Skip to main content

latest_crate_version

Function latest_crate_version 

Source
pub async fn latest_crate_version<S: Display, U: Display>(
    crate_name: S,
    user_agent: U,
) -> Result<Version>
Expand description

Asynchronously fetches the latest published version of crate_name from crates.io, identifying the request with the given user_agent.