is_crate_downloaded in cargo::sources::registry::download - Rust
Description: Checks if a tarball of `pkg` has been already downloaded under the directory at `cache_path`.

Skip to main content

## is_crate_downloaded

# Function is_crate_downloaded

Source

    pub(super) fn is_crate_downloaded(
        cache_path: &Filesystem,
        gctx: &GlobalContext,
        pkg: PackageId,
    ) -> bool

Expand description

Checks if a tarball of `pkg` has been already downloaded under the directory at `cache_path`.

This is primarily called by `RegistryData::is_crate_downloaded`.