Only add features flags if non-empty
This commit is contained in:
@@ -165,7 +165,7 @@ impl CargoWorkspace {
|
|||||||
// FIXME: `NoDefaultFeatures` is mutual exclusive with `SomeFeatures`
|
// FIXME: `NoDefaultFeatures` is mutual exclusive with `SomeFeatures`
|
||||||
// https://github.com/oli-obk/cargo_metadata/issues/79
|
// https://github.com/oli-obk/cargo_metadata/issues/79
|
||||||
meta.features(CargoOpt::NoDefaultFeatures);
|
meta.features(CargoOpt::NoDefaultFeatures);
|
||||||
} else {
|
} else if cargo_features.features.len() > 0 {
|
||||||
meta.features(CargoOpt::SomeFeatures(cargo_features.features.clone()));
|
meta.features(CargoOpt::SomeFeatures(cargo_features.features.clone()));
|
||||||
}
|
}
|
||||||
if let Some(parent) = cargo_toml.parent() {
|
if let Some(parent) = cargo_toml.parent() {
|
||||||
|
|||||||
Reference in New Issue
Block a user