Expand description
Shared download logic between HttpRegistry and RemoteRegistry.
Constantsยง
- CHECKSUM_TEMPLATE ๐
- CRATE_TEMPLATE ๐
- PREFIX_TEMPLATE ๐
- VERSION_TEMPLATE ๐
Functionsยง
- download ๐Checks if
pkgis downloaded and ready under the directory atcache_path. If not, returns a URL to download it from. - finish_download ๐Verifies the integrity of
datawithchecksumand persists it under the directory atcache_path. - is_crate_downloaded ๐Checks if a tarball of
pkghas been already downloaded under the directory atcache_path.