wasm-builder: Enable all features when running cargo metadata (#10716)

This is required for projects like Cumulus that have dependencies on `westend-runtime`, but this
runtime is only added when the `runtime-benchmarks` feature is enabled. By having all features
"enabled" in `cargo metadata` we ensure that all crates can be found.
This commit is contained in:
Bastian Köcher
2022-01-22 21:15:28 +01:00
committed by GitHub
parent 82c9690c3e
commit 3c3ad00412
@@ -31,7 +31,7 @@ use toml::value::Table;
use build_helper::rerun_if_changed;
use cargo_metadata::{Metadata, MetadataCommand};
use cargo_metadata::{CargoOpt, Metadata, MetadataCommand};
use walkdir::WalkDir;
@@ -88,6 +88,7 @@ fn crate_metadata(cargo_manifest: &Path) -> Metadata {
let crate_metadata = MetadataCommand::new()
.manifest_path(cargo_manifest)
.features(CargoOpt::AllFeatures)
.exec()
.expect("`cargo metadata` can not fail on project `Cargo.toml`; qed");