cargo::ops::common_for_install_and_uninstall

Function select_dep_pkg

Source
pub fn select_dep_pkg<T>(
    source: &mut T,
    dep: Dependency,
    gctx: &GlobalContext,
    needs_update: bool,
    current_rust_version: Option<&PartialVersion>,
) -> CargoResult<Package>
where T: Source,
Expand description

Gets a Package based on command-line requirements.