Function get_version

Source
pub async fn get_version(url: &str, version_req: &VersionReq) -> Result<Version>
Expand description

Gets the version for the specified version requirement. If a version for the version requirement is not found, then an error is returned.

ยงErrors

  • If the version is not found.