cargo::util::toml::targets

Function validate_unique_names

source
fn validate_unique_names(
    targets: &[TomlTarget],
    target_kind: &str,
) -> CargoResult<()>
Expand description

Will check a list of toml targets, and make sure the target names are unique within a vector.