installed_exact_package in cargo::ops::cargo_install - Rust
Description: Checks if vers can only be satisfied by exactly one version of a package in a registry, and it’s already installed. If this is the case, we can skip interacting with a registry to check if newer versions may be installable, as no newer version can exist.

Skip to main content

## installed_exact_package

# Function installed_exact_package

Source

    fn installed_exact_package(
        dep: Dependency,
        source: &mut dyn Source,
        gctx: &GlobalContext,
        opts: &CompileOptions,
        root: &Filesystem,
        dst: &Path,
        force: bool,
    ) -> CargoResult<Option<Package>>

Expand description

Checks if vers can only be satisfied by exactly one version of a package in a registry, and it’s already installed. If this is the case, we can skip interacting with a registry to check if newer versions may be installable, as no newer version can exist.