cargo::ops::cargo_install

Function remove_orphaned_bins

Source
fn remove_orphaned_bins(
    ws: &Workspace<'_>,
    tracker: &mut InstallTracker,
    duplicates: &BTreeMap<String, Option<PackageId>>,
    pkg: &Package,
    dst: &Path,
    dry_run: bool,
) -> CargoResult<()>
Expand description

Removes executables that are no longer part of a package that was previously installed.