Function get_archive

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

Gets the archive for a given version requirement that passes the default matcher. If no archive is found for the version requirement and matcher then an error is returned.

ยงErrors

  • If the archive is not found.
  • If the archive cannot be downloaded.