# Function cargo::ops::common_for_install_and_uninstall::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.