fn installed_exact_package<T>(
dep: Dependency,
source: &mut T,
gctx: &GlobalContext,
opts: &CompileOptions,
root: &Filesystem,
dst: &Path,
force: bool,
lockfile_path: Option<&Path>,
) -> CargoResult<Option<Package>>where
T: Source,
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.