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