mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 12:05:42 +00:00
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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user