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