cargo::core::summary

Function build_feature_map

Source
fn build_feature_map(
    features: &BTreeMap<InternedString, Vec<InternedString>>,
    dependencies: &[Dependency],
) -> CargoResult<FeatureMap>
Expand description

Checks features for errors, bailing out a CargoResult:Err if invalid, and creates FeatureValues for each feature.