diff --git a/substrate/bin/node-template/node/Cargo.toml b/substrate/bin/node-template/node/Cargo.toml index ea7989be45..b05fed96bc 100644 --- a/substrate/bin/node-template/node/Cargo.toml +++ b/substrate/bin/node-template/node/Cargo.toml @@ -73,7 +73,16 @@ runtime-benchmarks = [ "node-template-runtime/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-benchmarking-cli/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sc-service/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" ] # Enable features that allow the runtime to be tried and debugged. Name might be subject to change # in the near future. -try-runtime = ["node-template-runtime/try-runtime", "try-runtime-cli/try-runtime"] +try-runtime = [ + "node-template-runtime/try-runtime", + "try-runtime-cli/try-runtime", + "frame-system/try-runtime", + "pallet-transaction-payment/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/bin/node-template/pallets/template/Cargo.toml b/substrate/bin/node-template/pallets/template/Cargo.toml index ac933eb6e5..f468374c2f 100644 --- a/substrate/bin/node-template/pallets/template/Cargo.toml +++ b/substrate/bin/node-template/pallets/template/Cargo.toml @@ -34,6 +34,18 @@ std = [ "frame-support/std", "frame-system/std", "scale-info/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std" +] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" ] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/bin/node-template/runtime/Cargo.toml b/substrate/bin/node-template/runtime/Cargo.toml index 52b40989b2..1ad172dc83 100644 --- a/substrate/bin/node-template/runtime/Cargo.toml +++ b/substrate/bin/node-template/runtime/Cargo.toml @@ -112,4 +112,5 @@ try-runtime = [ "pallet-template/try-runtime", "pallet-timestamp/try-runtime", "pallet-transaction-payment/try-runtime", + "sp-runtime/try-runtime" ] diff --git a/substrate/bin/node/cli/Cargo.toml b/substrate/bin/node/cli/Cargo.toml index 00b6775a50..dd8c1c8e77 100644 --- a/substrate/bin/node/cli/Cargo.toml +++ b/substrate/bin/node/cli/Cargo.toml @@ -161,11 +161,31 @@ cli = [ ] runtime-benchmarks = [ "kitchensink-runtime/runtime-benchmarks", - "frame-benchmarking-cli/runtime-benchmarks" + "frame-benchmarking-cli/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-asset-tx-payment/runtime-benchmarks", + "pallet-assets/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-im-online/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sc-client-db/runtime-benchmarks", + "sc-service/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" ] # Enable features that allow the runtime to be tried and debugged. Name might be subject to change # in the near future. -try-runtime = ["kitchensink-runtime/try-runtime", "try-runtime-cli/try-runtime"] +try-runtime = [ + "kitchensink-runtime/try-runtime", + "try-runtime-cli/try-runtime", + "frame-system/try-runtime", + "pallet-asset-conversion-tx-payment/try-runtime", + "pallet-asset-tx-payment/try-runtime", + "pallet-assets/try-runtime", + "pallet-balances/try-runtime", + "pallet-im-online/try-runtime", + "pallet-timestamp/try-runtime", + "sp-runtime/try-runtime" +] [[bench]] name = "transaction_pool" diff --git a/substrate/bin/node/runtime/Cargo.toml b/substrate/bin/node/runtime/Cargo.toml index 30f0052c6e..4a9bb9a769 100644 --- a/substrate/bin/node/runtime/Cargo.toml +++ b/substrate/bin/node/runtime/Cargo.toml @@ -297,6 +297,11 @@ runtime-benchmarks = [ "pallet-vesting/runtime-benchmarks", "pallet-whitelist/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", + "frame-election-provider-support/runtime-benchmarks", + "pallet-asset-tx-payment/runtime-benchmarks", + "pallet-nomination-pools/runtime-benchmarks", + "pallet-offences/runtime-benchmarks", + "sp-staking/runtime-benchmarks" ] try-runtime = [ "frame-try-runtime/try-runtime", @@ -365,4 +370,6 @@ try-runtime = [ "pallet-nft-fractionalization/try-runtime", "pallet-vesting/try-runtime", "pallet-whitelist/try-runtime", + "frame-election-provider-support/try-runtime", + "sp-runtime/try-runtime" ] diff --git a/substrate/client/db/Cargo.toml b/substrate/client/db/Cargo.toml index a038cf802a..1845158dac 100644 --- a/substrate/client/db/Cargo.toml +++ b/substrate/client/db/Cargo.toml @@ -49,7 +49,10 @@ array-bytes = "6.1" [features] default = [] test-helpers = [] -runtime-benchmarks = [] +runtime-benchmarks = [ + "kitchensink-runtime/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] rocksdb = ["kvdb-rocksdb"] [[bench]] diff --git a/substrate/client/executor/Cargo.toml b/substrate/client/executor/Cargo.toml index 449fd22e3f..6a056ce7df 100644 --- a/substrate/client/executor/Cargo.toml +++ b/substrate/client/executor/Cargo.toml @@ -57,5 +57,19 @@ harness = false [features] default = ["std"] # This crate does not have `no_std` support, we just require this for tests -std = [] +std = [ + "sc-runtime-test/std", + "sp-api/std", + "sp-core/std", + "sp-externalities/std", + "sp-io/std", + "sp-runtime/std", + "sp-runtime-interface/std", + "sp-state-machine/std", + "sp-tracing/std", + "sp-trie/std", + "sp-version/std", + "sp-wasm-interface/std", + "substrate-test-runtime/std" +] wasm-extern-trace = [] diff --git a/substrate/client/executor/runtime-test/Cargo.toml b/substrate/client/executor/runtime-test/Cargo.toml index 50a1bf5f82..abf2fb5c27 100644 --- a/substrate/client/executor/runtime-test/Cargo.toml +++ b/substrate/client/executor/runtime-test/Cargo.toml @@ -30,4 +30,5 @@ std = [ "sp-runtime/std", "sp-std/std", "substrate-wasm-builder", + "sp-runtime-interface/std" ] diff --git a/substrate/client/service/Cargo.toml b/substrate/client/service/Cargo.toml index 4f280503fb..9ad2fcf778 100644 --- a/substrate/client/service/Cargo.toml +++ b/substrate/client/service/Cargo.toml @@ -19,7 +19,10 @@ default = ["rocksdb"] rocksdb = ["sc-client-db/rocksdb"] # exposes the client type test-helpers = [] -runtime-benchmarks = ["sc-client-db/runtime-benchmarks"] +runtime-benchmarks = [ + "sc-client-db/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] [dependencies] jsonrpsee = { version = "0.16.2", features = ["server"] } diff --git a/substrate/frame/alliance/Cargo.toml b/substrate/frame/alliance/Cargo.toml index b411df760f..d0330ddfd6 100644 --- a/substrate/frame/alliance/Cargo.toml +++ b/substrate/frame/alliance/Cargo.toml @@ -54,6 +54,7 @@ std = [ "frame-support/std", "frame-system/std", "pallet-identity/std", + "pallet-balances/std" ] runtime-benchmarks = [ "array-bytes", @@ -64,8 +65,13 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "pallet-collective/runtime-benchmarks", "pallet-identity/runtime-benchmarks", + "pallet-balances/runtime-benchmarks" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-collective?/try-runtime", + "pallet-identity/try-runtime", + "sp-runtime/try-runtime" ] diff --git a/substrate/frame/asset-conversion/Cargo.toml b/substrate/frame/asset-conversion/Cargo.toml index 0a7f48b004..77bfab48bb 100644 --- a/substrate/frame/asset-conversion/Cargo.toml +++ b/substrate/frame/asset-conversion/Cargo.toml @@ -40,11 +40,25 @@ std = [ "scale-info/std", "sp-std/std", "sp-runtime/std", - "sp-arithmetic/std" + "sp-arithmetic/std", + "pallet-assets/std", + "pallet-balances/std", + "sp-api/std", + "sp-core/std", + "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "pallet-assets/runtime-benchmarks", + "pallet-balances/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-assets/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/asset-rate/Cargo.toml b/substrate/frame/asset-rate/Cargo.toml index d7bb314e05..ebea548d88 100644 --- a/substrate/frame/asset-rate/Cargo.toml +++ b/substrate/frame/asset-rate/Cargo.toml @@ -40,16 +40,20 @@ std = [ "sp-runtime/std", "sp-std/std", "sp-core?/std", + "pallet-balances/std", + "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "dep:sp-core", + "sp-core", + "pallet-balances/runtime-benchmarks" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "sp-runtime/try-runtime", + "pallet-balances/try-runtime" ] diff --git a/substrate/frame/assets/Cargo.toml b/substrate/frame/assets/Cargo.toml index 404bea161e..4bef719595 100644 --- a/substrate/frame/assets/Cargo.toml +++ b/substrate/frame/assets/Cargo.toml @@ -41,10 +41,19 @@ std = [ "frame-support/std", "frame-system/std", "frame-benchmarking?/std", + "pallet-balances/std", + "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "frame-system/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "pallet-balances/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/atomic-swap/Cargo.toml b/substrate/frame/atomic-swap/Cargo.toml index a225a6fc0d..bf5018250d 100644 --- a/substrate/frame/atomic-swap/Cargo.toml +++ b/substrate/frame/atomic-swap/Cargo.toml @@ -36,5 +36,11 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/aura/Cargo.toml b/substrate/frame/aura/Cargo.toml index c7e29c83ae..aea8ab4adf 100644 --- a/substrate/frame/aura/Cargo.toml +++ b/substrate/frame/aura/Cargo.toml @@ -39,5 +39,12 @@ std = [ "sp-consensus-aura/std", "sp-runtime/std", "sp-std/std", + "sp-core/std", + "sp-io/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-timestamp/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/authority-discovery/Cargo.toml b/substrate/frame/authority-discovery/Cargo.toml index 9a5c7f850a..4e5025d7c7 100644 --- a/substrate/frame/authority-discovery/Cargo.toml +++ b/substrate/frame/authority-discovery/Cargo.toml @@ -43,5 +43,12 @@ std = [ "sp-authority-discovery/std", "sp-runtime/std", "sp-std/std", + "sp-core/std", + "sp-io/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-session/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/authorship/Cargo.toml b/substrate/frame/authorship/Cargo.toml index 3c05854ea1..14329367b0 100644 --- a/substrate/frame/authorship/Cargo.toml +++ b/substrate/frame/authorship/Cargo.toml @@ -36,5 +36,11 @@ std = [ "scale-info/std", "sp-runtime/std", "sp-std/std", + "sp-core/std", + "sp-io/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/babe/Cargo.toml b/substrate/frame/babe/Cargo.toml index ebfe4d4746..34cc6cc09b 100644 --- a/substrate/frame/babe/Cargo.toml +++ b/substrate/frame/babe/Cargo.toml @@ -59,6 +59,32 @@ std = [ "sp-session/std", "sp-staking/std", "sp-std/std", + "frame-election-provider-support/std", + "pallet-balances/std", + "pallet-offences/std", + "pallet-staking/std" +] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-election-provider-support/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-offences/runtime-benchmarks", + "pallet-staking/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-election-provider-support/try-runtime", + "frame-system/try-runtime", + "pallet-authorship/try-runtime", + "pallet-balances/try-runtime", + "pallet-offences/try-runtime", + "pallet-session/try-runtime", + "pallet-staking/try-runtime", + "pallet-timestamp/try-runtime", + "sp-runtime/try-runtime" ] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/bags-list/Cargo.toml b/substrate/frame/bags-list/Cargo.toml index 15fbebfb6f..a2974a5e17 100644 --- a/substrate/frame/bags-list/Cargo.toml +++ b/substrate/frame/bags-list/Cargo.toml @@ -67,6 +67,9 @@ runtime-benchmarks = [ "pallet-balances/runtime-benchmarks", "sp-tracing", "frame-election-provider-support/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" ] fuzz = [ "sp-core", @@ -75,4 +78,10 @@ fuzz = [ "sp-tracing", "frame-election-provider-support/fuzz", ] -try-runtime = [ "frame-support/try-runtime", "frame-election-provider-support/try-runtime" ] +try-runtime = [ + "frame-support/try-runtime", + "frame-election-provider-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances?/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/balances/Cargo.toml b/substrate/frame/balances/Cargo.toml index e240e3b6ce..549ed3936a 100644 --- a/substrate/frame/balances/Cargo.toml +++ b/substrate/frame/balances/Cargo.toml @@ -39,8 +39,21 @@ std = [ "scale-info/std", "sp-runtime/std", "sp-std/std", + "pallet-transaction-payment/std", + "sp-core/std", + "sp-io/std" ] # Enable support for setting the existential deposit to zero. insecure_zero_ed = [] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] -try-runtime = ["frame-support/try-runtime"] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-transaction-payment/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/beefy-mmr/Cargo.toml b/substrate/frame/beefy-mmr/Cargo.toml index fb6846efc2..5691a5d735 100644 --- a/substrate/frame/beefy-mmr/Cargo.toml +++ b/substrate/frame/beefy-mmr/Cargo.toml @@ -51,5 +51,13 @@ std = [ "sp-runtime/std", "sp-std/std", "sp-api/std", + "sp-staking/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-beefy/try-runtime", + "pallet-mmr/try-runtime", + "pallet-session/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/beefy/Cargo.toml b/substrate/frame/beefy/Cargo.toml index 471b16e159..9f331f74f7 100644 --- a/substrate/frame/beefy/Cargo.toml +++ b/substrate/frame/beefy/Cargo.toml @@ -48,5 +48,23 @@ std = [ "sp-session/std", "sp-staking/std", "sp-std/std", + "frame-election-provider-support/std", + "pallet-balances/std", + "pallet-offences/std", + "pallet-staking/std", + "pallet-timestamp/std", + "sp-core/std", + "sp-io/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-election-provider-support/try-runtime", + "frame-system/try-runtime", + "pallet-authorship/try-runtime", + "pallet-balances/try-runtime", + "pallet-offences/try-runtime", + "pallet-session/try-runtime", + "pallet-staking/try-runtime", + "pallet-timestamp/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/benchmarking/Cargo.toml b/substrate/frame/benchmarking/Cargo.toml index 9bf7613e6d..414b1b2301 100644 --- a/substrate/frame/benchmarking/Cargo.toml +++ b/substrate/frame/benchmarking/Cargo.toml @@ -55,8 +55,11 @@ std = [ "sp-runtime/std", "sp-std/std", "sp-storage/std", + "frame-support-procedural/std", + "sp-keystore/std" ] runtime-benchmarks = [ "frame-system/runtime-benchmarks", "frame-support/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" ] diff --git a/substrate/frame/benchmarking/pov/Cargo.toml b/substrate/frame/benchmarking/pov/Cargo.toml index d54985eb6f..c0ba828551 100644 --- a/substrate/frame/benchmarking/pov/Cargo.toml +++ b/substrate/frame/benchmarking/pov/Cargo.toml @@ -36,8 +36,11 @@ std = [ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", + "sp-runtime/try-runtime" ] diff --git a/substrate/frame/bounties/Cargo.toml b/substrate/frame/bounties/Cargo.toml index a5af0d72bd..950284e268 100644 --- a/substrate/frame/bounties/Cargo.toml +++ b/substrate/frame/bounties/Cargo.toml @@ -44,10 +44,20 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-treasury/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-treasury/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/child-bounties/Cargo.toml b/substrate/frame/child-bounties/Cargo.toml index aa5b873dee..7613c462eb 100644 --- a/substrate/frame/child-bounties/Cargo.toml +++ b/substrate/frame/child-bounties/Cargo.toml @@ -46,10 +46,23 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std" ] runtime-benchmarks = [ "frame-benchmarking", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-bounties/runtime-benchmarks", + "pallet-treasury/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-bounties/try-runtime", + "pallet-treasury/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/collective/Cargo.toml b/substrate/frame/collective/Cargo.toml index 7e9f38dc24..2ca447434f 100644 --- a/substrate/frame/collective/Cargo.toml +++ b/substrate/frame/collective/Cargo.toml @@ -44,4 +44,8 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/contracts/Cargo.toml b/substrate/frame/contracts/Cargo.toml index 092844908a..3c236e075d 100644 --- a/substrate/frame/contracts/Cargo.toml +++ b/substrate/frame/contracts/Cargo.toml @@ -82,11 +82,34 @@ std = [ "log/std", "rand/std", "environmental/std", + "pallet-balances/std", + "pallet-insecure-randomness-collective-flip/std", + "pallet-proxy/std", + "pallet-timestamp/std", + "pallet-utility/std", + "sp-api/std", + "sp-keystore/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "rand", "rand_pcg", "wasm-instrument", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-proxy/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "pallet-utility/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-insecure-randomness-collective-flip/try-runtime", + "pallet-proxy/try-runtime", + "pallet-timestamp/try-runtime", + "pallet-utility/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/contracts/primitives/Cargo.toml b/substrate/frame/contracts/primitives/Cargo.toml index 2a22810e8e..facfe34e1b 100644 --- a/substrate/frame/contracts/primitives/Cargo.toml +++ b/substrate/frame/contracts/primitives/Cargo.toml @@ -29,4 +29,5 @@ std = [ "sp-runtime/std", "sp-std/std", "scale-info/std", + "sp-weights/std" ] diff --git a/substrate/frame/conviction-voting/Cargo.toml b/substrate/frame/conviction-voting/Cargo.toml index adaf10d55f..cdc50340f7 100644 --- a/substrate/frame/conviction-voting/Cargo.toml +++ b/substrate/frame/conviction-voting/Cargo.toml @@ -44,6 +44,9 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "pallet-scheduler/std", + "sp-core/std" ] runtime-benchmarks = [ "frame-support/runtime-benchmarks", @@ -51,5 +54,13 @@ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-scheduler/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-scheduler/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/core-fellowship/Cargo.toml b/substrate/frame/core-fellowship/Cargo.toml index b971936b46..0d2cb7904e 100644 --- a/substrate/frame/core-fellowship/Cargo.toml +++ b/substrate/frame/core-fellowship/Cargo.toml @@ -46,4 +46,8 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/democracy/Cargo.toml b/substrate/frame/democracy/Cargo.toml index 1d805142d3..f29af91429 100644 --- a/substrate/frame/democracy/Cargo.toml +++ b/substrate/frame/democracy/Cargo.toml @@ -45,11 +45,24 @@ std = [ "sp-runtime/std", "sp-std/std", "sp-core/std", + "pallet-balances/std", + "pallet-preimage/std", + "pallet-scheduler/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-preimage/runtime-benchmarks", + "pallet-scheduler/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-preimage/try-runtime", + "pallet-scheduler/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime",] diff --git a/substrate/frame/election-provider-multi-phase/Cargo.toml b/substrate/frame/election-provider-multi-phase/Cargo.toml index 2bc74ab877..a971897a75 100644 --- a/substrate/frame/election-provider-multi-phase/Cargo.toml +++ b/substrate/frame/election-provider-multi-phase/Cargo.toml @@ -70,11 +70,24 @@ std = [ "frame-benchmarking?/std", "rand/std", "strum/std", + "pallet-balances/std", + "sp-tracing/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-election-provider-support/runtime-benchmarks", "rand", "strum", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-election-provider-support-benchmarking?/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-election-provider-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/election-provider-support/Cargo.toml b/substrate/frame/election-provider-support/Cargo.toml index 8786683d0b..2aeb06b044 100644 --- a/substrate/frame/election-provider-support/Cargo.toml +++ b/substrate/frame/election-provider-support/Cargo.toml @@ -41,6 +41,15 @@ std = [ "sp-core/std", "sp-runtime/std", "sp-std/std", + "sp-io/std" +] +runtime-benchmarks = [ + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" ] -runtime-benchmarks = [] -try-runtime = [] diff --git a/substrate/frame/election-provider-support/benchmarking/Cargo.toml b/substrate/frame/election-provider-support/benchmarking/Cargo.toml index 53c378b001..2614c61d43 100644 --- a/substrate/frame/election-provider-support/benchmarking/Cargo.toml +++ b/substrate/frame/election-provider-support/benchmarking/Cargo.toml @@ -34,4 +34,6 @@ std = [ runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-election-provider-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" ] diff --git a/substrate/frame/elections-phragmen/Cargo.toml b/substrate/frame/elections-phragmen/Cargo.toml index 9b26e1e367..ac4f2411dd 100644 --- a/substrate/frame/elections-phragmen/Cargo.toml +++ b/substrate/frame/elections-phragmen/Cargo.toml @@ -48,10 +48,21 @@ std = [ "sp-npos-elections/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "sp-staking/std", + "sp-tracing/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/examples/basic/Cargo.toml b/substrate/frame/examples/basic/Cargo.toml index e45a0627f9..60bfa1352f 100644 --- a/substrate/frame/examples/basic/Cargo.toml +++ b/substrate/frame/examples/basic/Cargo.toml @@ -40,6 +40,18 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "sp-core/std" +] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/examples/default-config/Cargo.toml b/substrate/frame/examples/default-config/Cargo.toml index ceca331308..eac342b736 100644 --- a/substrate/frame/examples/default-config/Cargo.toml +++ b/substrate/frame/examples/default-config/Cargo.toml @@ -35,4 +35,8 @@ std = [ "sp-runtime/std", "sp-std/std", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/examples/dev-mode/Cargo.toml b/substrate/frame/examples/dev-mode/Cargo.toml index 4b7b2e61f1..66b87a5b52 100644 --- a/substrate/frame/examples/dev-mode/Cargo.toml +++ b/substrate/frame/examples/dev-mode/Cargo.toml @@ -38,5 +38,11 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "sp-core/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/examples/kitchensink/Cargo.toml b/substrate/frame/examples/kitchensink/Cargo.toml index 92a0dc453f..0537f497b6 100644 --- a/substrate/frame/examples/kitchensink/Cargo.toml +++ b/substrate/frame/examples/kitchensink/Cargo.toml @@ -47,6 +47,18 @@ std = [ "frame-benchmarking?/std", "pallet-balances/std", + "sp-core/std" +] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/examples/offchain-worker/Cargo.toml b/substrate/frame/examples/offchain-worker/Cargo.toml index c0cd16bf19..dd3f8e070d 100644 --- a/substrate/frame/examples/offchain-worker/Cargo.toml +++ b/substrate/frame/examples/offchain-worker/Cargo.toml @@ -36,8 +36,12 @@ std = [ "scale-info/std", "sp-core/std", "sp-io/std", - "sp-keystore", - "sp-runtime/std", - "sp-std/std", + "sp-keystore/std", + "sp-runtime/std", + "sp-std/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/examples/split/Cargo.toml b/substrate/frame/examples/split/Cargo.toml index 21ecf89330..3ef5b5a070 100644 --- a/substrate/frame/examples/split/Cargo.toml +++ b/substrate/frame/examples/split/Cargo.toml @@ -42,6 +42,14 @@ std = [ "sp-std/std", "frame-benchmarking?/std", + "sp-core/std" +] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime" ] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/executive/Cargo.toml b/substrate/frame/executive/Cargo.toml index 6c76513581..fa466dd204 100644 --- a/substrate/frame/executive/Cargo.toml +++ b/substrate/frame/executive/Cargo.toml @@ -49,5 +49,16 @@ std = [ "sp-runtime/std", "sp-std/std", "sp-tracing/std", + "pallet-balances/std", + "pallet-transaction-payment/std", + "sp-inherents/std", + "sp-version/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-try-runtime/try-runtime", + "sp-runtime/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-transaction-payment/try-runtime" ] -try-runtime = ["frame-support/try-runtime", "frame-try-runtime/try-runtime", "sp-runtime/try-runtime"] diff --git a/substrate/frame/fast-unstake/Cargo.toml b/substrate/frame/fast-unstake/Cargo.toml index c628da7123..0e57a12be6 100644 --- a/substrate/frame/fast-unstake/Cargo.toml +++ b/substrate/frame/fast-unstake/Cargo.toml @@ -56,10 +56,29 @@ std = [ "frame-election-provider-support/std", "frame-benchmarking/std", + "pallet-balances/std", + "pallet-staking/std", + "pallet-timestamp/std", + "sp-core/std", + "sp-tracing/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-staking/runtime-benchmarks", + "frame-election-provider-support/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-staking/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-election-provider-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-staking/try-runtime", + "pallet-timestamp/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/glutton/Cargo.toml b/substrate/frame/glutton/Cargo.toml index 4675ada115..afaa7fdcf9 100644 --- a/substrate/frame/glutton/Cargo.toml +++ b/substrate/frame/glutton/Cargo.toml @@ -41,11 +41,19 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "pallet-balances/runtime-benchmarks" ] diff --git a/substrate/frame/grandpa/Cargo.toml b/substrate/frame/grandpa/Cargo.toml index 793a694b43..1f0d86cc49 100644 --- a/substrate/frame/grandpa/Cargo.toml +++ b/substrate/frame/grandpa/Cargo.toml @@ -60,6 +60,33 @@ std = [ "sp-session/std", "sp-staking/std", "sp-std/std", + "frame-election-provider-support/std", + "pallet-balances/std", + "pallet-offences/std", + "pallet-staking/std", + "pallet-timestamp/std" +] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-election-provider-support/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-offences/runtime-benchmarks", + "pallet-staking/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-election-provider-support/try-runtime", + "frame-system/try-runtime", + "pallet-authorship/try-runtime", + "pallet-balances/try-runtime", + "pallet-offences/try-runtime", + "pallet-session/try-runtime", + "pallet-staking/try-runtime", + "pallet-timestamp/try-runtime", + "sp-runtime/try-runtime" ] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/identity/Cargo.toml b/substrate/frame/identity/Cargo.toml index 85ad332398..942fba9053 100644 --- a/substrate/frame/identity/Cargo.toml +++ b/substrate/frame/identity/Cargo.toml @@ -38,10 +38,19 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "sp-core/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/im-online/Cargo.toml b/substrate/frame/im-online/Cargo.toml index 1adbb2ae90..076bf91962 100644 --- a/substrate/frame/im-online/Cargo.toml +++ b/substrate/frame/im-online/Cargo.toml @@ -46,6 +46,19 @@ std = [ "sp-runtime/std", "sp-staking/std", "sp-std/std", + "pallet-session/std" +] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-authorship/try-runtime", + "pallet-session/try-runtime", + "sp-runtime/try-runtime" ] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/indices/Cargo.toml b/substrate/frame/indices/Cargo.toml index e0714cdbcc..52fe97cc7e 100644 --- a/substrate/frame/indices/Cargo.toml +++ b/substrate/frame/indices/Cargo.toml @@ -40,10 +40,18 @@ std = [ "sp-keyring", "sp-runtime/std", "sp-std/std", + "pallet-balances/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/insecure-randomness-collective-flip/Cargo.toml b/substrate/frame/insecure-randomness-collective-flip/Cargo.toml index b0a4dc270b..d078eafacf 100644 --- a/substrate/frame/insecure-randomness-collective-flip/Cargo.toml +++ b/substrate/frame/insecure-randomness-collective-flip/Cargo.toml @@ -35,5 +35,11 @@ std = [ "scale-info/std", "sp-runtime/std", "sp-std/std", + "sp-core/std", + "sp-io/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/lottery/Cargo.toml b/substrate/frame/lottery/Cargo.toml index a38d1ac2a5..a46bf7feff 100644 --- a/substrate/frame/lottery/Cargo.toml +++ b/substrate/frame/lottery/Cargo.toml @@ -38,10 +38,22 @@ std = [ "scale-info/std", "sp-runtime/std", "sp-std/std", + "frame-support-test/std", + "pallet-balances/std", + "sp-core/std", + "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-support-test/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/membership/Cargo.toml b/substrate/frame/membership/Cargo.toml index afef5bc4b5..e41a1e0919 100644 --- a/substrate/frame/membership/Cargo.toml +++ b/substrate/frame/membership/Cargo.toml @@ -44,4 +44,8 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/merkle-mountain-range/Cargo.toml b/substrate/frame/merkle-mountain-range/Cargo.toml index 83bb7405f3..1d7739eb93 100644 --- a/substrate/frame/merkle-mountain-range/Cargo.toml +++ b/substrate/frame/merkle-mountain-range/Cargo.toml @@ -42,5 +42,14 @@ std = [ "sp-runtime/std", "sp-std/std", ] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] -try-runtime = ["frame-support/try-runtime"] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/message-queue/Cargo.toml b/substrate/frame/message-queue/Cargo.toml index 23c30e7a84..929b713b7e 100644 --- a/substrate/frame/message-queue/Cargo.toml +++ b/substrate/frame/message-queue/Cargo.toml @@ -44,10 +44,16 @@ std = [ "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "sp-tracing/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/multisig/Cargo.toml b/substrate/frame/multisig/Cargo.toml index 2afce62b05..d88cbb8b9f 100644 --- a/substrate/frame/multisig/Cargo.toml +++ b/substrate/frame/multisig/Cargo.toml @@ -40,10 +40,19 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "sp-core/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/nft-fractionalization/Cargo.toml b/substrate/frame/nft-fractionalization/Cargo.toml index adee4c4507..8f706a1e00 100644 --- a/substrate/frame/nft-fractionalization/Cargo.toml +++ b/substrate/frame/nft-fractionalization/Cargo.toml @@ -43,10 +43,24 @@ std = [ "scale-info/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "sp-core/std", + "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "pallet-assets/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-nfts/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-assets/try-runtime", + "pallet-balances/try-runtime", + "pallet-nfts/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/nfts/Cargo.toml b/substrate/frame/nfts/Cargo.toml index dca35a7d10..d378803f5d 100644 --- a/substrate/frame/nfts/Cargo.toml +++ b/substrate/frame/nfts/Cargo.toml @@ -42,10 +42,19 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "sp-keystore/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "pallet-balances/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/nicks/Cargo.toml b/substrate/frame/nicks/Cargo.toml index b10dcce92d..450fee2abc 100644 --- a/substrate/frame/nicks/Cargo.toml +++ b/substrate/frame/nicks/Cargo.toml @@ -35,5 +35,12 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "sp-core/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/nis/Cargo.toml b/substrate/frame/nis/Cargo.toml index 717bf4cb26..bad1bed8f9 100644 --- a/substrate/frame/nis/Cargo.toml +++ b/substrate/frame/nis/Cargo.toml @@ -39,10 +39,19 @@ std = [ "sp-core/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/node-authorization/Cargo.toml b/substrate/frame/node-authorization/Cargo.toml index 77dcbf666d..2415584127 100644 --- a/substrate/frame/node-authorization/Cargo.toml +++ b/substrate/frame/node-authorization/Cargo.toml @@ -35,4 +35,8 @@ std = [ "sp-runtime/std", "sp-std/std", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/nomination-pools/Cargo.toml b/substrate/frame/nomination-pools/Cargo.toml index 524c70fbc2..f3b9a025ec 100644 --- a/substrate/frame/nomination-pools/Cargo.toml +++ b/substrate/frame/nomination-pools/Cargo.toml @@ -48,10 +48,19 @@ std = [ "sp-staking/std", "sp-core/std", "log/std", + "pallet-balances?/std", + "sp-tracing?/std" ] runtime-benchmarks = [ "sp-staking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances?/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" ] try-runtime = [ - "frame-support/try-runtime" + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances?/try-runtime", + "sp-runtime/try-runtime" ] diff --git a/substrate/frame/nomination-pools/benchmarking/Cargo.toml b/substrate/frame/nomination-pools/benchmarking/Cargo.toml index f3f1ec2d31..38b79d2dab 100644 --- a/substrate/frame/nomination-pools/benchmarking/Cargo.toml +++ b/substrate/frame/nomination-pools/benchmarking/Cargo.toml @@ -54,6 +54,10 @@ std = [ "sp-runtime-interface/std", "sp-staking/std", "sp-std/std", + "pallet-balances/std", + "pallet-timestamp/std", + "sp-core/std", + "sp-io/std" ] runtime-benchmarks = [ @@ -66,4 +70,6 @@ runtime-benchmarks = [ "pallet-staking/runtime-benchmarks", "pallet-nomination-pools/runtime-benchmarks", "pallet-bags-list/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks" ] diff --git a/substrate/frame/offences/Cargo.toml b/substrate/frame/offences/Cargo.toml index 5d418dfa36..f2542b125d 100644 --- a/substrate/frame/offences/Cargo.toml +++ b/substrate/frame/offences/Cargo.toml @@ -41,6 +41,19 @@ std = [ "sp-runtime/std", "sp-staking/std", "sp-std/std", + "sp-core/std", + "sp-io/std" +] +runtime-benchmarks = [ + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -runtime-benchmarks = [] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/offences/benchmarking/Cargo.toml b/substrate/frame/offences/benchmarking/Cargo.toml index d59f0da54a..3483ad743a 100644 --- a/substrate/frame/offences/benchmarking/Cargo.toml +++ b/substrate/frame/offences/benchmarking/Cargo.toml @@ -57,8 +57,23 @@ std = [ "sp-staking/std", "sp-std/std", "log/std", + "pallet-timestamp/std", + "sp-core/std", + "sp-io/std" ] runtime-benchmarks = [ "pallet-staking/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-election-provider-support/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-babe/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-grandpa/runtime-benchmarks", + "pallet-im-online/runtime-benchmarks", + "pallet-offences/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks" ] diff --git a/substrate/frame/paged-list/Cargo.toml b/substrate/frame/paged-list/Cargo.toml index 301eeb3be2..71af167d78 100644 --- a/substrate/frame/paged-list/Cargo.toml +++ b/substrate/frame/paged-list/Cargo.toml @@ -32,4 +32,8 @@ std = ["codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-syste runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks"] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/preimage/Cargo.toml b/substrate/frame/preimage/Cargo.toml index 03aaa089d0..b942823a2d 100644 --- a/substrate/frame/preimage/Cargo.toml +++ b/substrate/frame/preimage/Cargo.toml @@ -30,6 +30,9 @@ runtime-benchmarks = [ "frame-benchmarking", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" ] std = [ "codec/std", @@ -42,7 +45,11 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std" ] try-runtime = [ "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] diff --git a/substrate/frame/proxy/Cargo.toml b/substrate/frame/proxy/Cargo.toml index 8ae7f001b4..a32a31ce41 100644 --- a/substrate/frame/proxy/Cargo.toml +++ b/substrate/frame/proxy/Cargo.toml @@ -38,10 +38,22 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "pallet-utility/std", + "sp-core/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-utility/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-utility/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/ranked-collective/Cargo.toml b/substrate/frame/ranked-collective/Cargo.toml index 1007cae37b..0a20b4eb97 100644 --- a/substrate/frame/ranked-collective/Cargo.toml +++ b/substrate/frame/ranked-collective/Cargo.toml @@ -46,4 +46,8 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/recovery/Cargo.toml b/substrate/frame/recovery/Cargo.toml index 9cc15c14b7..14d32866e0 100644 --- a/substrate/frame/recovery/Cargo.toml +++ b/substrate/frame/recovery/Cargo.toml @@ -33,6 +33,8 @@ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "pallet-balances/runtime-benchmarks" ] std = [ "codec/std", @@ -43,5 +45,12 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "sp-core/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/referenda/Cargo.toml b/substrate/frame/referenda/Cargo.toml index a89f641e81..a52d987806 100644 --- a/substrate/frame/referenda/Cargo.toml +++ b/substrate/frame/referenda/Cargo.toml @@ -49,6 +49,10 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "pallet-preimage/std", + "pallet-scheduler/std", + "sp-core/std" ] runtime-benchmarks = [ "assert_matches", @@ -56,5 +60,16 @@ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-preimage/runtime-benchmarks", + "pallet-scheduler/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-preimage/try-runtime", + "pallet-scheduler/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/remark/Cargo.toml b/substrate/frame/remark/Cargo.toml index 3183f5a796..df77770c3a 100644 --- a/substrate/frame/remark/Cargo.toml +++ b/substrate/frame/remark/Cargo.toml @@ -29,7 +29,12 @@ sp-core = { version = "21.0.0", default-features = false, path = "../../primitiv [features] default = ["std"] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] std = [ "frame-benchmarking?/std", "codec/std", @@ -42,4 +47,8 @@ std = [ "sp-runtime/std", "sp-std/std", ] -try-runtime = [ "frame-support/try-runtime" ] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/root-offences/Cargo.toml b/substrate/frame/root-offences/Cargo.toml index fa0a724a6b..6b7623b9af 100644 --- a/substrate/frame/root-offences/Cargo.toml +++ b/substrate/frame/root-offences/Cargo.toml @@ -36,15 +36,41 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../primitives frame-election-provider-support = { version = "4.0.0-dev", path = "../election-provider-support" } [features] -runtime-benchmarks = [] -try-runtime = ["frame-support/try-runtime"] +runtime-benchmarks = [ + "frame-election-provider-support/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-staking/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-election-provider-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-session/try-runtime", + "pallet-staking/try-runtime", + "pallet-timestamp/try-runtime", + "sp-runtime/try-runtime" +] default = ["std"] std = [ "codec/std", "frame-support/std", - "frame-system/std", + + "frame-system/std", "pallet-session/std", "pallet-staking/std", "scale-info/std", "sp-runtime/std", + "frame-election-provider-support/std", + "pallet-balances/std", + "pallet-timestamp/std", + "sp-core/std", + "sp-io/std", + "sp-staking/std", + "sp-std/std" ] diff --git a/substrate/frame/root-testing/Cargo.toml b/substrate/frame/root-testing/Cargo.toml index 743fdf6102..e6f32587d4 100644 --- a/substrate/frame/root-testing/Cargo.toml +++ b/substrate/frame/root-testing/Cargo.toml @@ -24,12 +24,21 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../primi sp-std = { version = "8.0.0", default-features = false, path = "../../primitives/std" } [features] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" +] default = ["std"] std = [ "codec/std", "frame-support/std", - "frame-system/std", + + "frame-system/std", "scale-info/std", - "sp-runtime/std", + + "sp-runtime/std", + "sp-core/std", + "sp-io/std", + "sp-std/std" ] diff --git a/substrate/frame/salary/Cargo.toml b/substrate/frame/salary/Cargo.toml index 61ef36f88c..8fedecf4ce 100644 --- a/substrate/frame/salary/Cargo.toml +++ b/substrate/frame/salary/Cargo.toml @@ -46,4 +46,8 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/scheduler/Cargo.toml b/substrate/frame/scheduler/Cargo.toml index 67506fbfee..60ab1b0f7e 100644 --- a/substrate/frame/scheduler/Cargo.toml +++ b/substrate/frame/scheduler/Cargo.toml @@ -32,6 +32,9 @@ runtime-benchmarks = [ "frame-benchmarking", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "pallet-preimage/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" ] std = [ "codec/std", @@ -44,5 +47,12 @@ std = [ "sp-runtime/std", "sp-std/std", "sp-weights/std", + "pallet-preimage/std", + "sp-core/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-preimage/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/scored-pool/Cargo.toml b/substrate/frame/scored-pool/Cargo.toml index 0c8e5b9343..58dd23d241 100644 --- a/substrate/frame/scored-pool/Cargo.toml +++ b/substrate/frame/scored-pool/Cargo.toml @@ -35,5 +35,12 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "sp-core/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/session/Cargo.toml b/substrate/frame/session/Cargo.toml index c4bb09d5cb..0858ae6656 100644 --- a/substrate/frame/session/Cargo.toml +++ b/substrate/frame/session/Cargo.toml @@ -46,4 +46,9 @@ std = [ "sp-std/std", "sp-trie/std", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-timestamp/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/session/benchmarking/Cargo.toml b/substrate/frame/session/benchmarking/Cargo.toml index a693ff3319..a26cacc561 100644 --- a/substrate/frame/session/benchmarking/Cargo.toml +++ b/substrate/frame/session/benchmarking/Cargo.toml @@ -45,8 +45,20 @@ std = [ "sp-runtime/std", "sp-session/std", "sp-std/std", + "frame-election-provider-support/std", + "pallet-balances/std", + "pallet-timestamp/std", + "sp-core/std", + "sp-io/std" ] runtime-benchmarks = [ "pallet-staking/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-election-provider-support/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" ] diff --git a/substrate/frame/society/Cargo.toml b/substrate/frame/society/Cargo.toml index 7f3e55e339..262c3cd316 100644 --- a/substrate/frame/society/Cargo.toml +++ b/substrate/frame/society/Cargo.toml @@ -49,6 +49,10 @@ std = [ "sp-runtime/std", "sp-std/std", "sp-io/std", + "frame-support-test/std", + "pallet-balances/std", + "sp-arithmetic/std", + "sp-core/std" ] runtime-benchmarks = [ "frame-benchmarking", @@ -58,4 +62,10 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ + "frame-support/try-runtime", + "frame-support-test/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" +] diff --git a/substrate/frame/staking/Cargo.toml b/substrate/frame/staking/Cargo.toml index b4c2634dd8..19a437ce4c 100644 --- a/substrate/frame/staking/Cargo.toml +++ b/substrate/frame/staking/Cargo.toml @@ -67,11 +67,33 @@ std = [ "sp-application-crypto/std", "log/std", "frame-election-provider-support/std", + "pallet-bags-list/std", + "pallet-balances/std", + "pallet-timestamp/std", + "sp-core/std", + "sp-npos-elections/std", + "sp-tracing/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-election-provider-support/runtime-benchmarks", "rand_chacha", "sp-staking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-bags-list/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-election-provider-support/try-runtime", + "frame-system/try-runtime", + "pallet-authorship/try-runtime", + "pallet-bags-list/try-runtime", + "pallet-balances/try-runtime", + "pallet-session/try-runtime", + "pallet-timestamp/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime", "frame-election-provider-support/try-runtime"] diff --git a/substrate/frame/state-trie-migration/Cargo.toml b/substrate/frame/state-trie-migration/Cargo.toml index 1aa2a391d0..dd2693f10a 100644 --- a/substrate/frame/state-trie-migration/Cargo.toml +++ b/substrate/frame/state-trie-migration/Cargo.toml @@ -47,7 +47,21 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "sp-tracing/std" +] +runtime-benchmarks = [ + "frame-benchmarking", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -runtime-benchmarks = ["frame-benchmarking"] -try-runtime = ["frame-support/try-runtime"] remote-test = [ "remote-externalities", "serde", "std", "substrate-state-trie-migration-rpc", "thousands", "zstd" ] diff --git a/substrate/frame/statement/Cargo.toml b/substrate/frame/statement/Cargo.toml index 982d688abf..cc51258165 100644 --- a/substrate/frame/statement/Cargo.toml +++ b/substrate/frame/statement/Cargo.toml @@ -40,7 +40,11 @@ std = [ "sp-io/std", "sp-core/std", "sp-statement-store/std", + "pallet-balances/std" ] try-runtime = [ "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] diff --git a/substrate/frame/sudo/Cargo.toml b/substrate/frame/sudo/Cargo.toml index f1ca4a012e..9f3851d91e 100644 --- a/substrate/frame/sudo/Cargo.toml +++ b/substrate/frame/sudo/Cargo.toml @@ -36,10 +36,16 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "sp-core/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", + "frame-support/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/support/Cargo.toml b/substrate/frame/support/Cargo.toml index 189014f4d4..fab6167f3d 100644 --- a/substrate/frame/support/Cargo.toml +++ b/substrate/frame/support/Cargo.toml @@ -73,7 +73,9 @@ std = [ "frame-support-procedural/std", "log/std", "environmental/std", - "sp-genesis-builder/std" + "sp-genesis-builder/std", + "frame-system/std", + "sp-debug-derive/std" ] runtime-benchmarks = [ "frame-system/runtime-benchmarks", @@ -81,7 +83,9 @@ runtime-benchmarks = [ "sp-staking/runtime-benchmarks" ] try-runtime = [ - "sp-debug-derive/force-debug" + "sp-debug-derive/force-debug", + "frame-system/try-runtime", + "sp-runtime/try-runtime" ] experimental = [] # By default some types have documentation, `no-metadata-docs` allows to reduce the documentation diff --git a/substrate/frame/support/test/Cargo.toml b/substrate/frame/support/test/Cargo.toml index 20906f17b0..af4d3afd4d 100644 --- a/substrate/frame/support/test/Cargo.toml +++ b/substrate/frame/support/test/Cargo.toml @@ -49,16 +49,17 @@ std = [ "sp-core/std", "sp-io/std", "sp-runtime/std", - "sp-state-machine", "sp-std/std", "sp-version/std", "test-pallet/std", + "sp-state-machine/std" ] experimental = ["frame-support/experimental"] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "frame-executive/try-runtime", + "sp-runtime/try-runtime" ] # WARNING: # Only CI runs with this feature enabled. This feature is for testing stuff related to the FRAME macros diff --git a/substrate/frame/support/test/pallet/Cargo.toml b/substrate/frame/support/test/pallet/Cargo.toml index bc171c354e..6edfcd7896 100644 --- a/substrate/frame/support/test/pallet/Cargo.toml +++ b/substrate/frame/support/test/pallet/Cargo.toml @@ -27,4 +27,5 @@ std = [ "frame-system/std", "scale-info/std", "serde/std", + "sp-runtime/std" ] diff --git a/substrate/frame/system/Cargo.toml b/substrate/frame/system/Cargo.toml index b0a2adb0c8..d1a0124d99 100644 --- a/substrate/frame/system/Cargo.toml +++ b/substrate/frame/system/Cargo.toml @@ -45,12 +45,16 @@ std = [ "sp-std/std", "sp-version/std", "sp-weights/std", + "sp-externalities/std" ] runtime-benchmarks = [ "frame-support/runtime-benchmarks", "sp-runtime/runtime-benchmarks", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ + "frame-support/try-runtime", + "sp-runtime/try-runtime" +] [[bench]] name = "bench" diff --git a/substrate/frame/system/benchmarking/Cargo.toml b/substrate/frame/system/benchmarking/Cargo.toml index 27a7d91e37..0d8165a3a4 100644 --- a/substrate/frame/system/benchmarking/Cargo.toml +++ b/substrate/frame/system/benchmarking/Cargo.toml @@ -38,10 +38,14 @@ std = [ "sp-core/std", "sp-runtime/std", "sp-std/std", + "sp-externalities/std", + "sp-io/std", + "sp-version/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" ] diff --git a/substrate/frame/timestamp/Cargo.toml b/substrate/frame/timestamp/Cargo.toml index 6a84381b17..c92fb6b75b 100644 --- a/substrate/frame/timestamp/Cargo.toml +++ b/substrate/frame/timestamp/Cargo.toml @@ -44,6 +44,17 @@ std = [ "sp-runtime/std", "sp-std/std", "sp-timestamp/std", + "sp-core/std" +] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "sp-io", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime" ] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks", "sp-io"] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/tips/Cargo.toml b/substrate/frame/tips/Cargo.toml index e7c1819661..aed4f6f961 100644 --- a/substrate/frame/tips/Cargo.toml +++ b/substrate/frame/tips/Cargo.toml @@ -45,10 +45,21 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "sp-storage/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-treasury/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-treasury/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/transaction-payment/Cargo.toml b/substrate/frame/transaction-payment/Cargo.toml index 85592816b2..3f953d4eef 100644 --- a/substrate/frame/transaction-payment/Cargo.toml +++ b/substrate/frame/transaction-payment/Cargo.toml @@ -41,5 +41,11 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/transaction-payment/asset-conversion-tx-payment/Cargo.toml b/substrate/frame/transaction-payment/asset-conversion-tx-payment/Cargo.toml index 1555f4d913..69118cec04 100644 --- a/substrate/frame/transaction-payment/asset-conversion-tx-payment/Cargo.toml +++ b/substrate/frame/transaction-payment/asset-conversion-tx-payment/Cargo.toml @@ -43,5 +43,16 @@ std = [ "sp-core/std", "pallet-asset-conversion/std", "pallet-transaction-payment/std", + "pallet-assets/std", + "pallet-balances/std", + "sp-storage/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-asset-conversion/try-runtime", + "pallet-assets/try-runtime", + "pallet-balances/try-runtime", + "pallet-transaction-payment/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/transaction-payment/asset-tx-payment/Cargo.toml b/substrate/frame/transaction-payment/asset-tx-payment/Cargo.toml index 8bbe059a0c..056880423f 100644 --- a/substrate/frame/transaction-payment/asset-tx-payment/Cargo.toml +++ b/substrate/frame/transaction-payment/asset-tx-payment/Cargo.toml @@ -52,10 +52,25 @@ std = [ "sp-core/std", "pallet-transaction-payment/std", "frame-benchmarking?/std", + "pallet-assets/std", + "pallet-authorship/std", + "pallet-balances/std", + "sp-storage/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "frame-system/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "pallet-assets/runtime-benchmarks", + "pallet-balances/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-assets/try-runtime", + "pallet-authorship/try-runtime", + "pallet-balances/try-runtime", + "pallet-transaction-payment/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/transaction-storage/Cargo.toml b/substrate/frame/transaction-storage/Cargo.toml index 0d258a3d83..ae94e4a9bf 100644 --- a/substrate/frame/transaction-storage/Cargo.toml +++ b/substrate/frame/transaction-storage/Cargo.toml @@ -34,7 +34,14 @@ sp-transaction-storage-proof = { version = "4.0.0-dev", default-features = true, [features] default = ["std"] -runtime-benchmarks = ["array-bytes", "frame-benchmarking/runtime-benchmarks"] +runtime-benchmarks = [ + "array-bytes", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] std = [ "log/std", "frame-benchmarking?/std", @@ -49,5 +56,11 @@ std = [ "sp-runtime/std", "sp-std/std", "sp-transaction-storage-proof/std", + "sp-core/std" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/treasury/Cargo.toml b/substrate/frame/treasury/Cargo.toml index e4d06bba64..f692f204b9 100644 --- a/substrate/frame/treasury/Cargo.toml +++ b/substrate/frame/treasury/Cargo.toml @@ -44,10 +44,22 @@ std = [ "serde", "sp-runtime/std", "sp-std/std", + "pallet-utility/std", + "sp-core/std", + "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-utility/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-utility/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/try-runtime/Cargo.toml b/substrate/frame/try-runtime/Cargo.toml index f7402301f5..f9b99ba598 100644 --- a/substrate/frame/try-runtime/Cargo.toml +++ b/substrate/frame/try-runtime/Cargo.toml @@ -29,4 +29,5 @@ std = [ ] try-runtime = [ "frame-support/try-runtime", + "sp-runtime/try-runtime" ] diff --git a/substrate/frame/uniques/Cargo.toml b/substrate/frame/uniques/Cargo.toml index 3abb1eed9c..9ddcef1e7b 100644 --- a/substrate/frame/uniques/Cargo.toml +++ b/substrate/frame/uniques/Cargo.toml @@ -39,10 +39,20 @@ std = [ "scale-info/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "sp-core/std", + "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "pallet-balances/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/utility/Cargo.toml b/substrate/frame/utility/Cargo.toml index 6c5f7fa48a..87281f0abd 100644 --- a/substrate/frame/utility/Cargo.toml +++ b/substrate/frame/utility/Cargo.toml @@ -42,11 +42,26 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "pallet-collective/std", + "pallet-root-testing/std", + "pallet-timestamp/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-collective/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-collective/try-runtime", + "pallet-root-testing/try-runtime", + "pallet-timestamp/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/vesting/Cargo.toml b/substrate/frame/vesting/Cargo.toml index c28fb0a551..1bf4491f34 100644 --- a/substrate/frame/vesting/Cargo.toml +++ b/substrate/frame/vesting/Cargo.toml @@ -40,6 +40,20 @@ std = [ "scale-info/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "sp-core/std", + "sp-io/std" +] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "sp-runtime/try-runtime" ] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/frame/whitelist/Cargo.toml b/substrate/frame/whitelist/Cargo.toml index 77304090c4..ba05859df2 100644 --- a/substrate/frame/whitelist/Cargo.toml +++ b/substrate/frame/whitelist/Cargo.toml @@ -38,10 +38,24 @@ std = [ "sp-api/std", "sp-runtime/std", "sp-std/std", + "pallet-balances/std", + "pallet-preimage/std", + "sp-core/std", + "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-preimage/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-preimage/try-runtime", + "sp-runtime/try-runtime" ] -try-runtime = ["frame-support/try-runtime"] diff --git a/substrate/primitives/api/Cargo.toml b/substrate/primitives/api/Cargo.toml index c6d197b8d3..2f0fe5d5d9 100644 --- a/substrate/primitives/api/Cargo.toml +++ b/substrate/primitives/api/Cargo.toml @@ -47,6 +47,9 @@ std = [ "log/std", "scale-info/std", "sp-metadata-ir?/std", + "sp-api-proc-macro/std", + "sp-externalities?/std", + "sp-test-primitives/std" ] # Special feature to disable logging completely. # diff --git a/substrate/primitives/arithmetic/Cargo.toml b/substrate/primitives/arithmetic/Cargo.toml index e2e2e1c6c2..972dfee29d 100644 --- a/substrate/primitives/arithmetic/Cargo.toml +++ b/substrate/primitives/arithmetic/Cargo.toml @@ -39,6 +39,7 @@ std = [ "scale-info/std", "serde/std", "sp-std/std", + "sp-core/std" ] # Serde support without relying on std features. serde = [ diff --git a/substrate/primitives/consensus/babe/Cargo.toml b/substrate/primitives/consensus/babe/Cargo.toml index b33bae73f6..3e22c89a29 100644 --- a/substrate/primitives/consensus/babe/Cargo.toml +++ b/substrate/primitives/consensus/babe/Cargo.toml @@ -40,7 +40,7 @@ std = [ "sp-inherents/std", "sp-runtime/std", "sp-std/std", - "sp-timestamp", + "sp-timestamp/std", ] # Serde support without relying on std features. diff --git a/substrate/primitives/consensus/beefy/Cargo.toml b/substrate/primitives/consensus/beefy/Cargo.toml index 3673397b87..90cd3e7f21 100644 --- a/substrate/primitives/consensus/beefy/Cargo.toml +++ b/substrate/primitives/consensus/beefy/Cargo.toml @@ -42,6 +42,7 @@ std = [ "sp-mmr-primitives/std", "sp-runtime/std", "sp-std/std", + "sp-keystore/std" ] # Serde support without relying on std features. diff --git a/substrate/primitives/consensus/grandpa/Cargo.toml b/substrate/primitives/consensus/grandpa/Cargo.toml index 00a5eedfc5..2d0ff26f89 100644 --- a/substrate/primitives/consensus/grandpa/Cargo.toml +++ b/substrate/primitives/consensus/grandpa/Cargo.toml @@ -37,9 +37,9 @@ std = [ "sp-api/std", "sp-application-crypto/std", "sp-core/std", - "sp-keystore", - "sp-runtime/std", - "sp-std/std", + "sp-keystore/std", + "sp-runtime/std", + "sp-std/std" ] # Serde support without relying on std features. diff --git a/substrate/primitives/core/Cargo.toml b/substrate/primitives/core/Cargo.toml index f02489a09f..65c3549814 100644 --- a/substrate/primitives/core/Cargo.toml +++ b/substrate/primitives/core/Cargo.toml @@ -103,7 +103,6 @@ std = [ "secp256k1/global-context", "sp-core-hashing/std", "sp-debug-derive/std", - "sp-externalities", "sp-storage/std", "sp-runtime-interface/std", "ss58-registry/std", @@ -114,6 +113,7 @@ std = [ "libsecp256k1/std", "dyn-clonable", "tracing", + "sp-externalities/std" ] # Serde support without relying on std features. diff --git a/substrate/primitives/genesis-builder/Cargo.toml b/substrate/primitives/genesis-builder/Cargo.toml index de543f0a74..d17c6b5da8 100644 --- a/substrate/primitives/genesis-builder/Cargo.toml +++ b/substrate/primitives/genesis-builder/Cargo.toml @@ -24,4 +24,5 @@ std = [ "sp-api/std", "sp-std/std", "serde_json/std", + "sp-runtime/std" ] diff --git a/substrate/primitives/io/Cargo.toml b/substrate/primitives/io/Cargo.toml index 55ba753d59..fc87ff0bc6 100644 --- a/substrate/primitives/io/Cargo.toml +++ b/substrate/primitives/io/Cargo.toml @@ -46,7 +46,6 @@ std = [ "bytes/std", "sp-externalities/std", "sp-core/std", - "sp-keystore", "codec/std", "sp-std/std", "sp-trie/std", @@ -60,6 +59,7 @@ std = [ "log", "ed25519-dalek", "ed25519", + "sp-keystore/std" ] with-tracing = [ diff --git a/substrate/primitives/runtime-interface/Cargo.toml b/substrate/primitives/runtime-interface/Cargo.toml index 3248baafae..e0d6d9d89b 100644 --- a/substrate/primitives/runtime-interface/Cargo.toml +++ b/substrate/primitives/runtime-interface/Cargo.toml @@ -45,6 +45,10 @@ std = [ "codec/std", "sp-externalities/std", "primitive-types/std", + "sp-core/std", + "sp-io/std", + "sp-runtime-interface-test-wasm/std", + "sp-state-machine/std" ] # ATTENTION diff --git a/substrate/primitives/runtime/Cargo.toml b/substrate/primitives/runtime/Cargo.toml index f9271f0ca6..246b2a2ed2 100644 --- a/substrate/primitives/runtime/Cargo.toml +++ b/substrate/primitives/runtime/Cargo.toml @@ -57,6 +57,9 @@ std = [ "sp-io/std", "sp-std/std", "sp-weights/std", + "sp-api/std", + "sp-state-machine/std", + "sp-tracing/std" ] # Serde support without relying on std features. diff --git a/substrate/primitives/session/Cargo.toml b/substrate/primitives/session/Cargo.toml index dc99c356cc..f547608fe5 100644 --- a/substrate/primitives/session/Cargo.toml +++ b/substrate/primitives/session/Cargo.toml @@ -32,5 +32,5 @@ std = [ "sp-runtime/std", "sp-staking/std", "sp-std/std", - "sp-keystore", + "sp-keystore/std" ] diff --git a/substrate/primitives/staking/Cargo.toml b/substrate/primitives/staking/Cargo.toml index c6aee3cbcd..43ee307aa1 100644 --- a/substrate/primitives/staking/Cargo.toml +++ b/substrate/primitives/staking/Cargo.toml @@ -32,4 +32,6 @@ std = [ "sp-runtime/std", "sp-std/std", ] -runtime-benchmarks = [] +runtime-benchmarks = [ + "sp-runtime/runtime-benchmarks" +] diff --git a/substrate/primitives/state-machine/Cargo.toml b/substrate/primitives/state-machine/Cargo.toml index 302f05324c..32be8e518f 100644 --- a/substrate/primitives/state-machine/Cargo.toml +++ b/substrate/primitives/state-machine/Cargo.toml @@ -52,4 +52,5 @@ std = [ "trie-db/std", "thiserror", "tracing", + "sp-runtime/std" ] diff --git a/substrate/primitives/statement-store/Cargo.toml b/substrate/primitives/statement-store/Cargo.toml index ea240e6e25..c3e620ab22 100644 --- a/substrate/primitives/statement-store/Cargo.toml +++ b/substrate/primitives/statement-store/Cargo.toml @@ -53,6 +53,7 @@ std = [ "hkdf", "sha2", "rand", + "sp-externalities/std" ] serde = [ "scale-info/serde", diff --git a/substrate/primitives/transaction-storage-proof/Cargo.toml b/substrate/primitives/transaction-storage-proof/Cargo.toml index acf2ed010f..b687f63c2f 100644 --- a/substrate/primitives/transaction-storage-proof/Cargo.toml +++ b/substrate/primitives/transaction-storage-proof/Cargo.toml @@ -28,9 +28,9 @@ std = [ "async-trait", "codec/std", "scale-info/std", - "sp-core", "sp-inherents/std", "sp-runtime/std", "sp-std/std", "sp-trie/std", + "sp-core/std" ] diff --git a/substrate/primitives/trie/Cargo.toml b/substrate/primitives/trie/Cargo.toml index e0f170052c..546d6786fc 100644 --- a/substrate/primitives/trie/Cargo.toml +++ b/substrate/primitives/trie/Cargo.toml @@ -61,4 +61,5 @@ std = [ "tracing", "trie-db/std", "trie-root/std", + "sp-runtime/std" ] diff --git a/substrate/scripts/ci/gitlab/pipeline/build.yml b/substrate/scripts/ci/gitlab/pipeline/build.yml index 914b64967e..e6ee155466 100644 --- a/substrate/scripts/ci/gitlab/pipeline/build.yml +++ b/substrate/scripts/ci/gitlab/pipeline/build.yml @@ -61,6 +61,7 @@ check-runtime-migration-rococo: extends: .check-runtime-migration variables: NETWORK: rococo + allow_failure: true check-runtime-migration-westend: extends: .check-runtime-migration diff --git a/substrate/scripts/ci/gitlab/pipeline/check.yml b/substrate/scripts/ci/gitlab/pipeline/check.yml index a29f31d4aa..576daec9b4 100644 --- a/substrate/scripts/ci/gitlab/pipeline/check.yml +++ b/substrate/scripts/ci/gitlab/pipeline/check.yml @@ -47,6 +47,19 @@ test-rust-features: https://github.com/paritytech/pipeline-scripts - bash ./pipeline-scripts/rust-features.sh . +test-rust-feature-propagation: + stage: check + extends: + - .kubernetes-env + - .test-refs-no-trigger-prs-only + script: + - cargo install --locked --version 0.7.4 -q -f zepter && zepter --version + - echo "👉 Hello developer! If you see this CI check failing then it means that one of the crates is missing a feature for one of its dependencies. The output below tells you which feature needs to be added for which dependency to which crate. You can do this by modifying the Cargo.toml file. For more context see the MR where this check was introduced https://github.com/paritytech/substrate/pull/14660" + - zepter lint propagate-feature --feature try-runtime --left-side-feature-missing=ignore --workspace --feature-enables-dep="try-runtime:frame-try-runtime" --locked + - zepter lint propagate-feature --feature runtime-benchmarks --left-side-feature-missing=ignore --workspace --feature-enables-dep="runtime-benchmarks:frame-benchmarking" --locked + - zepter lint propagate-feature --feature std --left-side-feature-missing=ignore --workspace --locked + allow_failure: true # Experimental + test-prometheus-alerting-rules: stage: check extends: .kubernetes-env diff --git a/substrate/test-utils/runtime/Cargo.toml b/substrate/test-utils/runtime/Cargo.toml index 2b80d1c64b..320d0e07de 100644 --- a/substrate/test-utils/runtime/Cargo.toml +++ b/substrate/test-utils/runtime/Cargo.toml @@ -104,6 +104,9 @@ std = [ "sp-transaction-pool/std", "trie-db/std", "substrate-wasm-builder", + "frame-executive/std", + "sc-executor/std", + "sp-tracing/std" ] # Special feature to disable logging disable-logging = [ "sp-api/disable-logging" ] diff --git a/substrate/utils/binary-merkle-tree/Cargo.toml b/substrate/utils/binary-merkle-tree/Cargo.toml index 596c394018..4b7b9e53ef 100644 --- a/substrate/utils/binary-merkle-tree/Cargo.toml +++ b/substrate/utils/binary-merkle-tree/Cargo.toml @@ -23,6 +23,10 @@ sp-runtime = { version = "24.0.0", path = "../../primitives/runtime" } debug = ["array-bytes", "log"] default = ["debug", "std"] std = [ - "log/std", - "hash-db/std" + + "log/std", + + "hash-db/std", + "sp-core/std", + "sp-runtime/std" ] diff --git a/substrate/utils/frame/benchmarking-cli/Cargo.toml b/substrate/utils/frame/benchmarking-cli/Cargo.toml index f6dadf4a98..b7970613d1 100644 --- a/substrate/utils/frame/benchmarking-cli/Cargo.toml +++ b/substrate/utils/frame/benchmarking-cli/Cargo.toml @@ -57,5 +57,12 @@ gethostname = "0.2.3" [features] default = ["rocksdb"] -runtime-benchmarks = ["sc-client-db/runtime-benchmarks"] +runtime-benchmarks = [ + "sc-client-db/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sc-service/runtime-benchmarks", + "sp-runtime/runtime-benchmarks" +] rocksdb = ["sc-cli/rocksdb", "sc-client-db/rocksdb"] diff --git a/substrate/utils/frame/try-runtime/cli/Cargo.toml b/substrate/utils/frame/try-runtime/cli/Cargo.toml index 41c022c904..61c2fcc2ec 100644 --- a/substrate/utils/frame/try-runtime/cli/Cargo.toml +++ b/substrate/utils/frame/try-runtime/cli/Cargo.toml @@ -52,4 +52,8 @@ tempfile = "3.1.0" tokio = "1.27.0" [features] -try-runtime = ["sp-debug-derive/force-debug", "frame-try-runtime/try-runtime"] +try-runtime = [ + "sp-debug-derive/force-debug", + "frame-try-runtime/try-runtime", + "sp-runtime/try-runtime" +]