cargo::ops::resolve

# Function register_patch_entries

source

    fn register_patch_entries(
        registry: &mut PackageRegistry<'_>,
        ws: &Workspace<'_>,
        previous: Option<&Resolve>,
        version_prefs: &mut VersionPreferences,
        keep_previous: &'_ dyn Fn(&PackageId) -> bool,
    ) -> CargoResult<HashSet<PackageId>>

Expand description

Informs `registry` and `version_pref` that `[patch]` entries are available and preferable for the dependency resolution.

This returns a set of PackageIds of `[patch]` entries, and some related locked PackageIds, for which locking should be avoided (but which will be preferred when searching dependencies, via `VersionPreferences::prefer_patch_deps`).