cargo::ops::resolve

Function lock_replacements

source
fn lock_replacements(
    ws: &Workspace<'_>,
    previous: Option<&Resolve>,
    keep: &'_ dyn Fn(&PackageId) -> bool,
) -> Vec<(PackageIdSpec, Dependency)>
Expand description

Locks each [replace] entry to a specific Package ID if the lockfile contains any corresponding previous replacement.