From dc85ccb7dfc6ec461ef26fa9a0d56d93623482c4 Mon Sep 17 00:00:00 2001 From: Gavin Wood Date: Thu, 5 Mar 2020 15:57:38 +0100 Subject: [PATCH] Expose the `runtime-benchmarks` feature to the cli crate (#5143) This exposes the `runtime-benchmarks` feature via the cli crate and makes sure the benchmarking can be enabled. This requires that the user goes to `bin/node/cli` and runs `cargo build --features runtime-benchmarks` to build a node that has the feature enabled. --- substrate/bin/node/cli/Cargo.toml | 1 + substrate/bin/node/runtime/Cargo.toml | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/substrate/bin/node/cli/Cargo.toml b/substrate/bin/node/cli/Cargo.toml index cfb1621b69..e18b6b228e 100644 --- a/substrate/bin/node/cli/Cargo.toml +++ b/substrate/bin/node/cli/Cargo.toml @@ -151,3 +151,4 @@ wasmtime = [ "sc-cli/wasmtime", "sc-service/wasmtime", ] +runtime-benchmarks = [ "node-runtime/runtime-benchmarks" ] diff --git a/substrate/bin/node/runtime/Cargo.toml b/substrate/bin/node/runtime/Cargo.toml index b92e9bc8ae..0d65cf5339 100644 --- a/substrate/bin/node/runtime/Cargo.toml +++ b/substrate/bin/node/runtime/Cargo.toml @@ -132,4 +132,9 @@ std = [ "pallet-recovery/std", "pallet-vesting/std", ] -runtime-benchmarks = ["frame-benchmarking"] +runtime-benchmarks = [ + "frame-benchmarking", + "pallet-timestamp/runtime-benchmarks", + "pallet-identity/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", +]