cargo::ops::cargo_compile::packages

Function opt_patterns_and_ids

source
fn opt_patterns_and_ids(
    opt: &[String],
) -> CargoResult<(Vec<(Pattern, bool)>, BTreeSet<PackageIdSpec>)>
Expand description

Given a list opt-in or opt-out package selection strings, generates two collections that represent glob patterns and package id specs respectively.