Module cargo::sources::registry::download

source ·
Expand description

Shared download logic between HttpRegistry and RemoteRegistry.

Constants§

Functions§

  • download 🔒
    Checks if pkg is downloaded and ready under the directory at cache_path. If not, returns a URL to download it from.
  • Verifies the integrity of data with checksum and persists it under the directory at cache_path.
  • Checks if a tarball of pkg has been already downloaded under the directory at cache_path.