cargo::core::profiles

Function validate_packages_unique

Source
fn validate_packages_unique(
    resolve: &Resolve,
    name: &str,
    toml: &Option<TomlProfile>,
) -> CargoResult<HashSet<PackageIdSpec>>
Expand description

Validate that a package does not match multiple package override specs.

For example [profile.dev.package.bar] and [profile.dev.package."bar:0.5.0"] would both match bar:0.5.0 which would be ambiguous.