diff --git a/cumulus/bridges/bin/runtime-common/Cargo.toml b/cumulus/bridges/bin/runtime-common/Cargo.toml index 9d54c3b86cbb..ee133420f053 100644 --- a/cumulus/bridges/bin/runtime-common/Cargo.toml +++ b/cumulus/bridges/bin/runtime-common/Cargo.toml @@ -49,7 +49,7 @@ bp-test-utils = { path = "../../primitives/test-utils" } pallet-balances = { path = "../../../../substrate/frame/balances" } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-header-chain/std", "bp-messages/std", @@ -75,8 +75,8 @@ std = [ "sp-runtime/std", "sp-std/std", "sp-trie/std", - "xcm/std", "xcm-builder/std", + "xcm/std", ] runtime-benchmarks = [ "pallet-bridge-grandpa/runtime-benchmarks", @@ -85,6 +85,4 @@ runtime-benchmarks = [ "pallet-bridge-relayers/runtime-benchmarks", "xcm-builder/runtime-benchmarks", ] -integrity-test = [ - "static_assertions", -] +integrity-test = [ "static_assertions" ] diff --git a/cumulus/bridges/modules/grandpa/Cargo.toml b/cumulus/bridges/modules/grandpa/Cargo.toml index bb35a4e0cd96..3e25b5d0c6d4 100644 --- a/cumulus/bridges/modules/grandpa/Cargo.toml +++ b/cumulus/bridges/modules/grandpa/Cargo.toml @@ -36,16 +36,16 @@ sp-core = { path = "../../../../substrate/primitives/core" } sp-io = { path = "../../../../substrate/primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-header-chain/std", "bp-runtime/std", "bp-test-utils/std", "codec/std", "finality-grandpa/std", + "frame-benchmarking/std", "frame-support/std", "frame-system/std", - "frame-benchmarking/std", "log/std", "scale-info/std", "sp-consensus-grandpa/std", @@ -57,7 +57,4 @@ runtime-benchmarks = [ "bp-test-utils", "frame-benchmarking/runtime-benchmarks", ] -try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", -] +try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime" ] diff --git a/cumulus/bridges/modules/messages/Cargo.toml b/cumulus/bridges/modules/messages/Cargo.toml index 9904c1d1ce7d..8108b5df1c58 100644 --- a/cumulus/bridges/modules/messages/Cargo.toml +++ b/cumulus/bridges/modules/messages/Cargo.toml @@ -32,14 +32,14 @@ pallet-balances = { path = "../../../../substrate/frame/balances" } sp-io = { path = "../../../../substrate/primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-messages/std", "bp-runtime/std", "codec/std", + "frame-benchmarking/std", "frame-support/std", "frame-system/std", - "frame-benchmarking/std", "log/std", "num-traits/std", "scale-info/std", @@ -47,10 +47,5 @@ std = [ "sp-runtime/std", "sp-std/std", ] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", -] -try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", -] +runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks" ] +try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime" ] diff --git a/cumulus/bridges/modules/parachains/Cargo.toml b/cumulus/bridges/modules/parachains/Cargo.toml index 7b0ceb9638d1..d7384c0ab3b1 100644 --- a/cumulus/bridges/modules/parachains/Cargo.toml +++ b/cumulus/bridges/modules/parachains/Cargo.toml @@ -34,16 +34,16 @@ sp-core = { path = "../../../../substrate/primitives/core" } sp-io = { path = "../../../../substrate/primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-header-chain/std", "bp-parachains/std", "bp-polkadot-core/std", "bp-runtime/std", "codec/std", + "frame-benchmarking/std", "frame-support/std", "frame-system/std", - "frame-benchmarking/std", "log/std", "pallet-bridge-grandpa/std", "scale-info/std", @@ -51,10 +51,5 @@ std = [ "sp-std/std", "sp-trie/std", ] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", -] -try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", -] +runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks" ] +try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime" ] diff --git a/cumulus/bridges/modules/relayers/Cargo.toml b/cumulus/bridges/modules/relayers/Cargo.toml index 55a5961a83e2..8a5a4efe65df 100644 --- a/cumulus/bridges/modules/relayers/Cargo.toml +++ b/cumulus/bridges/modules/relayers/Cargo.toml @@ -35,7 +35,7 @@ sp-io = { path = "../../../../substrate/primitives/io" } sp-runtime = { path = "../../../../substrate/primitives/runtime" } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-messages/std", "bp-relayers/std", @@ -50,10 +50,5 @@ std = [ "sp-runtime/std", "sp-std/std", ] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", -] -try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", -] +runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks" ] +try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime" ] diff --git a/cumulus/bridges/modules/xcm-bridge-hub-router/Cargo.toml b/cumulus/bridges/modules/xcm-bridge-hub-router/Cargo.toml index 1b1ce650ed8a..7f57c5342656 100644 --- a/cumulus/bridges/modules/xcm-bridge-hub-router/Cargo.toml +++ b/cumulus/bridges/modules/xcm-bridge-hub-router/Cargo.toml @@ -34,7 +34,7 @@ sp-io = { path = "../../../../substrate/primitives/io" } sp-std = { path = "../../../../substrate/primitives/std" } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-xcm-bridge-hub-router/std", "codec/std", @@ -46,14 +46,11 @@ std = [ "sp-core/std", "sp-runtime/std", "sp-std/std", - "xcm/std", "xcm-builder/std", + "xcm/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "xcm-builder/runtime-benchmarks", ] -try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime", -] +try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime" ] diff --git a/cumulus/bridges/primitives/chain-asset-hub-kusama/Cargo.toml b/cumulus/bridges/primitives/chain-asset-hub-kusama/Cargo.toml index 2b3e1f6c1986..9bc7c46e07e3 100644 --- a/cumulus/bridges/primitives/chain-asset-hub-kusama/Cargo.toml +++ b/cumulus/bridges/primitives/chain-asset-hub-kusama/Cargo.toml @@ -17,10 +17,10 @@ frame-support = { path = "../../../../substrate/frame/support", default-features bp-xcm-bridge-hub-router = { path = "../xcm-bridge-hub-router", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-xcm-bridge-hub-router/std", - "frame-support/std", "codec/std", + "frame-support/std", "scale-info/std", ] diff --git a/cumulus/bridges/primitives/chain-asset-hub-polkadot/Cargo.toml b/cumulus/bridges/primitives/chain-asset-hub-polkadot/Cargo.toml index 93c376cc3763..b5b5fcde4e20 100644 --- a/cumulus/bridges/primitives/chain-asset-hub-polkadot/Cargo.toml +++ b/cumulus/bridges/primitives/chain-asset-hub-polkadot/Cargo.toml @@ -18,11 +18,11 @@ sp-runtime = { path = "../../../../substrate/primitives/runtime", default-featur bp-xcm-bridge-hub-router = { path = "../xcm-bridge-hub-router", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-xcm-bridge-hub-router/std", - "frame-support/std", "codec/std", + "frame-support/std", "scale-info/std", "sp-runtime/std", ] diff --git a/cumulus/bridges/primitives/chain-bridge-hub-cumulus/Cargo.toml b/cumulus/bridges/primitives/chain-bridge-hub-cumulus/Cargo.toml index e371d6cf9db8..af916665814b 100644 --- a/cumulus/bridges/primitives/chain-bridge-hub-cumulus/Cargo.toml +++ b/cumulus/bridges/primitives/chain-bridge-hub-cumulus/Cargo.toml @@ -24,14 +24,14 @@ sp-std = { path = "../../../../substrate/primitives/std", default-features = fal polkadot-primitives = { path = "../../../../polkadot/primitives", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ - "bp-polkadot-core/std", "bp-messages/std", + "bp-polkadot-core/std", "bp-runtime/std", - "frame-system/std", "frame-support/std", + "frame-system/std", + "polkadot-primitives/std", "sp-api/std", "sp-std/std", - "polkadot-primitives/std", ] diff --git a/cumulus/bridges/primitives/chain-bridge-hub-kusama/Cargo.toml b/cumulus/bridges/primitives/chain-bridge-hub-kusama/Cargo.toml index cdbae5233bbb..d6d92ebb578d 100644 --- a/cumulus/bridges/primitives/chain-bridge-hub-kusama/Cargo.toml +++ b/cumulus/bridges/primitives/chain-bridge-hub-kusama/Cargo.toml @@ -21,7 +21,7 @@ sp-runtime = { path = "../../../../substrate/primitives/runtime", default-featur sp-std = { path = "../../../../substrate/primitives/std", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-bridge-hub-cumulus/std", "bp-messages/std", diff --git a/cumulus/bridges/primitives/chain-bridge-hub-polkadot/Cargo.toml b/cumulus/bridges/primitives/chain-bridge-hub-polkadot/Cargo.toml index 3c2f25076c12..cb5ebf3b478c 100644 --- a/cumulus/bridges/primitives/chain-bridge-hub-polkadot/Cargo.toml +++ b/cumulus/bridges/primitives/chain-bridge-hub-polkadot/Cargo.toml @@ -22,11 +22,11 @@ sp-runtime = { path = "../../../../substrate/primitives/runtime", default-featur sp-std = { path = "../../../../substrate/primitives/std", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-bridge-hub-cumulus/std", - "bp-runtime/std", "bp-messages/std", + "bp-runtime/std", "frame-support/std", "sp-api/std", "sp-runtime/std", diff --git a/cumulus/bridges/primitives/chain-bridge-hub-rococo/Cargo.toml b/cumulus/bridges/primitives/chain-bridge-hub-rococo/Cargo.toml index 88ccbbc61cec..cb11afff7af7 100644 --- a/cumulus/bridges/primitives/chain-bridge-hub-rococo/Cargo.toml +++ b/cumulus/bridges/primitives/chain-bridge-hub-rococo/Cargo.toml @@ -21,7 +21,7 @@ sp-runtime = { path = "../../../../substrate/primitives/runtime", default-featur sp-std = { path = "../../../../substrate/primitives/std", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-bridge-hub-cumulus/std", "bp-messages/std", diff --git a/cumulus/bridges/primitives/chain-bridge-hub-wococo/Cargo.toml b/cumulus/bridges/primitives/chain-bridge-hub-wococo/Cargo.toml index ac55ace917c0..7302d9ff76d0 100644 --- a/cumulus/bridges/primitives/chain-bridge-hub-wococo/Cargo.toml +++ b/cumulus/bridges/primitives/chain-bridge-hub-wococo/Cargo.toml @@ -22,11 +22,11 @@ sp-runtime = { path = "../../../../substrate/primitives/runtime", default-featur sp-std = { path = "../../../../substrate/primitives/std", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-bridge-hub-cumulus/std", - "bp-runtime/std", "bp-messages/std", + "bp-runtime/std", "frame-support/std", "sp-api/std", "sp-runtime/std", diff --git a/cumulus/bridges/primitives/chain-kusama/Cargo.toml b/cumulus/bridges/primitives/chain-kusama/Cargo.toml index 4aa62220ce11..4ad39858df34 100644 --- a/cumulus/bridges/primitives/chain-kusama/Cargo.toml +++ b/cumulus/bridges/primitives/chain-kusama/Cargo.toml @@ -21,7 +21,7 @@ sp-api = { path = "../../../../substrate/primitives/api", default-features = fal sp-std = { path = "../../../../substrate/primitives/std", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-header-chain/std", "bp-polkadot-core/std", diff --git a/cumulus/bridges/primitives/chain-polkadot/Cargo.toml b/cumulus/bridges/primitives/chain-polkadot/Cargo.toml index 1bfda8b4774c..3cec5d267ea0 100644 --- a/cumulus/bridges/primitives/chain-polkadot/Cargo.toml +++ b/cumulus/bridges/primitives/chain-polkadot/Cargo.toml @@ -21,7 +21,7 @@ sp-api = { path = "../../../../substrate/primitives/api", default-features = fal sp-std = { path = "../../../../substrate/primitives/std", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-header-chain/std", "bp-polkadot-core/std", diff --git a/cumulus/bridges/primitives/chain-rococo/Cargo.toml b/cumulus/bridges/primitives/chain-rococo/Cargo.toml index 77694ada3bda..9a2eb1069095 100644 --- a/cumulus/bridges/primitives/chain-rococo/Cargo.toml +++ b/cumulus/bridges/primitives/chain-rococo/Cargo.toml @@ -21,7 +21,7 @@ sp-std = { path = "../../../../substrate/primitives/std", default-features = fal frame-support = { path = "../../../../substrate/frame/support", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-header-chain/std", "bp-polkadot-core/std", diff --git a/cumulus/bridges/primitives/chain-wococo/Cargo.toml b/cumulus/bridges/primitives/chain-wococo/Cargo.toml index ca9e3a150477..d3be18aa0647 100644 --- a/cumulus/bridges/primitives/chain-wococo/Cargo.toml +++ b/cumulus/bridges/primitives/chain-wococo/Cargo.toml @@ -22,12 +22,12 @@ sp-api = { path = "../../../../substrate/primitives/api", default-features = fal sp-std = { path = "../../../../substrate/primitives/std", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-header-chain/std", "bp-polkadot-core/std", - "bp-runtime/std", "bp-rococo/std", + "bp-runtime/std", "frame-support/std", "sp-api/std", "sp-std/std", diff --git a/cumulus/bridges/primitives/header-chain/Cargo.toml b/cumulus/bridges/primitives/header-chain/Cargo.toml index 929fba53b956..8b59a2be8963 100644 --- a/cumulus/bridges/primitives/header-chain/Cargo.toml +++ b/cumulus/bridges/primitives/header-chain/Cargo.toml @@ -30,16 +30,16 @@ hex = "0.4" hex-literal = "0.4" [features] -default = ["std"] +default = [ "std" ] std = [ "bp-runtime/std", "codec/std", "finality-grandpa/std", - "serde/std", "frame-support/std", "scale-info/std", - "sp-core/std", + "serde/std", "sp-consensus-grandpa/std", + "sp-core/std", "sp-runtime/std", "sp-std/std", ] diff --git a/cumulus/bridges/primitives/messages/Cargo.toml b/cumulus/bridges/primitives/messages/Cargo.toml index 25ed8f2b3157..1e9e4db087ee 100644 --- a/cumulus/bridges/primitives/messages/Cargo.toml +++ b/cumulus/bridges/primitives/messages/Cargo.toml @@ -27,14 +27,14 @@ hex = "0.4" hex-literal = "0.4" [features] -default = ["std"] +default = [ "std" ] std = [ - "bp-runtime/std", "bp-header-chain/std", + "bp-runtime/std", "codec/std", "frame-support/std", "scale-info/std", "serde/std", "sp-core/std", - "sp-std/std" + "sp-std/std", ] diff --git a/cumulus/bridges/primitives/parachains/Cargo.toml b/cumulus/bridges/primitives/parachains/Cargo.toml index f28625922705..1e4acc6c5019 100644 --- a/cumulus/bridges/primitives/parachains/Cargo.toml +++ b/cumulus/bridges/primitives/parachains/Cargo.toml @@ -25,7 +25,7 @@ sp-runtime = { path = "../../../../substrate/primitives/runtime", default-featur sp-std = { path = "../../../../substrate/primitives/std", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-header-chain/std", "bp-polkadot-core/std", diff --git a/cumulus/bridges/primitives/polkadot-core/Cargo.toml b/cumulus/bridges/primitives/polkadot-core/Cargo.toml index 87820be77232..33829e7a96c6 100644 --- a/cumulus/bridges/primitives/polkadot-core/Cargo.toml +++ b/cumulus/bridges/primitives/polkadot-core/Cargo.toml @@ -29,13 +29,13 @@ sp-std = { path = "../../../../substrate/primitives/std", default-features = fal hex = "0.4" [features] -default = ["std"] +default = [ "std" ] std = [ "bp-messages/std", "bp-runtime/std", + "codec/std", "frame-support/std", "frame-system/std", - "codec/std", "parity-util-mem", "scale-info/std", "serde", diff --git a/cumulus/bridges/primitives/relayers/Cargo.toml b/cumulus/bridges/primitives/relayers/Cargo.toml index 648aeb5db4b9..56edea067dc0 100644 --- a/cumulus/bridges/primitives/relayers/Cargo.toml +++ b/cumulus/bridges/primitives/relayers/Cargo.toml @@ -26,7 +26,7 @@ hex = "0.4" hex-literal = "0.4" [features] -default = ["std"] +default = [ "std" ] std = [ "bp-messages/std", "bp-runtime/std", diff --git a/cumulus/bridges/primitives/runtime/Cargo.toml b/cumulus/bridges/primitives/runtime/Cargo.toml index bf7f2cd6f976..0d6b9fb400c7 100644 --- a/cumulus/bridges/primitives/runtime/Cargo.toml +++ b/cumulus/bridges/primitives/runtime/Cargo.toml @@ -31,7 +31,7 @@ trie-db = { version = "0.27.1", default-features = false } hex-literal = "0.4" [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", @@ -44,8 +44,8 @@ std = [ "sp-core/std", "sp-io/std", "sp-runtime/std", - "sp-std/std", "sp-state-machine/std", + "sp-std/std", "sp-trie/std", "trie-db/std", ] diff --git a/cumulus/bridges/primitives/test-utils/Cargo.toml b/cumulus/bridges/primitives/test-utils/Cargo.toml index dadf017f2083..e841c81f1469 100644 --- a/cumulus/bridges/primitives/test-utils/Cargo.toml +++ b/cumulus/bridges/primitives/test-utils/Cargo.toml @@ -21,7 +21,7 @@ sp-std = { path = "../../../../substrate/primitives/std", default-features = fal sp-trie = { path = "../../../../substrate/primitives/trie", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "bp-header-chain/std", "bp-polkadot-core/std", diff --git a/cumulus/bridges/primitives/xcm-bridge-hub-router/Cargo.toml b/cumulus/bridges/primitives/xcm-bridge-hub-router/Cargo.toml index 97daa91c05ea..dccb36af6de8 100644 --- a/cumulus/bridges/primitives/xcm-bridge-hub-router/Cargo.toml +++ b/cumulus/bridges/primitives/xcm-bridge-hub-router/Cargo.toml @@ -15,10 +15,5 @@ sp-runtime = { path = "../../../../substrate/primitives/runtime", default-featur sp-core = { path = "../../../../substrate/primitives/core", default-features = false } [features] -default = ["std"] -std = [ - "codec/std", - "scale-info/std", - "sp-runtime/std", - "sp-core/std", -] +default = [ "std" ] +std = [ "codec/std", "scale-info/std", "sp-core/std", "sp-runtime/std" ] diff --git a/cumulus/client/relay-chain-inprocess-interface/Cargo.toml b/cumulus/client/relay-chain-inprocess-interface/Cargo.toml index b71dab518bdc..20f46a7a95a4 100644 --- a/cumulus/client/relay-chain-inprocess-interface/Cargo.toml +++ b/cumulus/client/relay-chain-inprocess-interface/Cargo.toml @@ -43,4 +43,4 @@ metered = { package = "prioritized-metered-channel", version = "0.2.0" } cumulus-test-service = { path = "../../test/service" } [features] -network-protocol-staging = ["polkadot-service/network-protocol-staging"] +network-protocol-staging = [ "polkadot-service/network-protocol-staging" ] diff --git a/cumulus/client/relay-chain-minimal-node/Cargo.toml b/cumulus/client/relay-chain-minimal-node/Cargo.toml index b9672fbc067b..7fc53d17470a 100644 --- a/cumulus/client/relay-chain-minimal-node/Cargo.toml +++ b/cumulus/client/relay-chain-minimal-node/Cargo.toml @@ -42,4 +42,6 @@ async-trait = "0.1.73" futures = "0.3.28" [features] -network-protocol-staging = ["polkadot-node-network-protocol/network-protocol-staging"] +network-protocol-staging = [ + "polkadot-node-network-protocol/network-protocol-staging", +] diff --git a/cumulus/client/service/Cargo.toml b/cumulus/client/service/Cargo.toml index 60060b14d967..0c557dc9ca73 100644 --- a/cumulus/client/service/Cargo.toml +++ b/cumulus/client/service/Cargo.toml @@ -42,6 +42,6 @@ cumulus-relay-chain-minimal-node = { path = "../relay-chain-minimal-node" } [features] network-protocol-staging = [ + "cumulus-relay-chain-inprocess-interface/network-protocol-staging", "cumulus-relay-chain-minimal-node/network-protocol-staging", - "cumulus-relay-chain-inprocess-interface/network-protocol-staging" ] diff --git a/cumulus/pallets/aura-ext/Cargo.toml b/cumulus/pallets/aura-ext/Cargo.toml index 123d9bb220ab..b29bbe977899 100644 --- a/cumulus/pallets/aura-ext/Cargo.toml +++ b/cumulus/pallets/aura-ext/Cargo.toml @@ -31,14 +31,14 @@ cumulus-pallet-parachain-system = { path = "../parachain-system" } default = [ "std" ] std = [ "codec/std", - "scale-info/std", + "cumulus-pallet-parachain-system/std", "frame-support/std", "frame-system/std", "pallet-aura/std", + "scale-info/std", "sp-application-crypto/std", "sp-consensus-aura/std", "sp-runtime/std", "sp-std/std", - "cumulus-pallet-parachain-system/std", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ "frame-support/try-runtime" ] diff --git a/cumulus/pallets/collator-selection/Cargo.toml b/cumulus/pallets/collator-selection/Cargo.toml index a33ab712e1d7..cce7e344daa6 100644 --- a/cumulus/pallets/collator-selection/Cargo.toml +++ b/cumulus/pallets/collator-selection/Cargo.toml @@ -39,7 +39,7 @@ pallet-balances = { path = "../../../substrate/frame/balances" } pallet-aura = { path = "../../../substrate/frame/aura" } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", @@ -47,17 +47,17 @@ runtime-benchmarks = [ ] std = [ "codec/std", + "frame-benchmarking/std", + "frame-support/std", + "frame-system/std", "log/std", - "scale-info/std", + "pallet-authorship/std", + "pallet-session/std", "rand/std", + "scale-info/std", "sp-runtime/std", "sp-staking/std", "sp-std/std", - "frame-support/std", - "frame-system/std", - "frame-benchmarking/std", - "pallet-authorship/std", - "pallet-session/std", ] try-runtime = [ "frame-support/try-runtime" ] diff --git a/cumulus/pallets/dmp-queue/Cargo.toml b/cumulus/pallets/dmp-queue/Cargo.toml index c45165bcefe5..3777383349fc 100644 --- a/cumulus/pallets/dmp-queue/Cargo.toml +++ b/cumulus/pallets/dmp-queue/Cargo.toml @@ -30,14 +30,14 @@ sp-version = { path = "../../../substrate/primitives/version", default-features default = [ "std" ] std = [ "codec/std", - "scale-info/std", + "cumulus-primitives-core/std", "frame-support/std", "frame-system/std", "log/std", + "scale-info/std", "sp-io/std", "sp-runtime/std", "sp-std/std", "xcm/std", - "cumulus-primitives-core/std", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ "frame-support/try-runtime" ] diff --git a/cumulus/pallets/parachain-system/Cargo.toml b/cumulus/pallets/parachain-system/Cargo.toml index 125fe01af4af..cfc439724f5a 100644 --- a/cumulus/pallets/parachain-system/Cargo.toml +++ b/cumulus/pallets/parachain-system/Cargo.toml @@ -55,14 +55,14 @@ cumulus-test-relay-sproof-builder = { path = "../../test/relay-sproof-builder" } default = [ "std" ] std = [ "codec/std", - "environmental/std", - "log/std", - "scale-info/std", "cumulus-pallet-parachain-system-proc-macro/std", "cumulus-primitives-core/std", "cumulus-primitives-parachain-inherent/std", + "environmental/std", "frame-support/std", "frame-system/std", + "log/std", + "scale-info/std", "sp-core/std", "sp-externalities/std", "sp-io/std", @@ -70,14 +70,12 @@ std = [ "sp-state-machine/std", "sp-std/std", "sp-trie/std", - "xcm/std", "trie-db/std", + "xcm/std", ] -runtime-benchmarks = [ - "sp-runtime/runtime-benchmarks" -] +runtime-benchmarks = [ "sp-runtime/runtime-benchmarks" ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ "frame-support/try-runtime" ] parameterized-consensus-hook = [] diff --git a/cumulus/pallets/session-benchmarking/Cargo.toml b/cumulus/pallets/session-benchmarking/Cargo.toml index 1e8a7fc7c774..901ddb186eea 100644 --- a/cumulus/pallets/session-benchmarking/Cargo.toml +++ b/cumulus/pallets/session-benchmarking/Cargo.toml @@ -22,18 +22,18 @@ frame-benchmarking = { path = "../../../substrate/frame/benchmarking", default-f pallet-session = { path = "../../../substrate/frame/session", default-features = false} [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", ] std = [ - "parity-scale-codec/std", - "sp-std/std", - "sp-runtime/std", - "frame-system/std", "frame-benchmarking/std", "frame-support/std", + "frame-system/std", "pallet-session/std", + "parity-scale-codec/std", + "sp-runtime/std", + "sp-std/std", ] diff --git a/cumulus/pallets/solo-to-para/Cargo.toml b/cumulus/pallets/solo-to-para/Cargo.toml index de2515607bde..94e0becafc98 100644 --- a/cumulus/pallets/solo-to-para/Cargo.toml +++ b/cumulus/pallets/solo-to-para/Cargo.toml @@ -26,13 +26,13 @@ cumulus-pallet-parachain-system = { path = "../parachain-system", default-featur default = [ "std" ] std = [ "codec/std", - "scale-info/std", "cumulus-pallet-parachain-system/std", "frame-support/std", "frame-system/std", "pallet-sudo/std", "polkadot-primitives/std", + "scale-info/std", "sp-runtime/std", "sp-std/std", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ "frame-support/try-runtime" ] diff --git a/cumulus/pallets/xcm/Cargo.toml b/cumulus/pallets/xcm/Cargo.toml index 8135c9b75a2b..d6b8c6200579 100644 --- a/cumulus/pallets/xcm/Cargo.toml +++ b/cumulus/pallets/xcm/Cargo.toml @@ -19,15 +19,15 @@ xcm = { path = "../../../polkadot/xcm", default-features = false} cumulus-primitives-core = { path = "../../primitives/core", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "scale-info/std", "cumulus-primitives-core/std", - "sp-std/std", - "sp-runtime/std", "frame-support/std", "frame-system/std", + "scale-info/std", + "sp-runtime/std", + "sp-std/std", "xcm/std", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ "frame-support/try-runtime" ] diff --git a/cumulus/pallets/xcmp-queue/Cargo.toml b/cumulus/pallets/xcmp-queue/Cargo.toml index 51fe3b041604..2cd319dd1c66 100644 --- a/cumulus/pallets/xcmp-queue/Cargo.toml +++ b/cumulus/pallets/xcmp-queue/Cargo.toml @@ -44,12 +44,12 @@ cumulus-pallet-parachain-system = { path = "../parachain-system" } default = [ "std" ] std = [ "codec/std", - "scale-info/std", "cumulus-primitives-core/std", "frame-support/std", "frame-system/std", "log/std", "polkadot-runtime-common/std", + "scale-info/std", "sp-io/std", "sp-runtime/std", "sp-std/std", @@ -63,4 +63,4 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "xcm-builder/runtime-benchmarks", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ "frame-support/try-runtime" ] diff --git a/cumulus/parachain-template/node/Cargo.toml b/cumulus/parachain-template/node/Cargo.toml index 21eb00760f56..f110e98aacb4 100644 --- a/cumulus/parachain-template/node/Cargo.toml +++ b/cumulus/parachain-template/node/Cargo.toml @@ -78,10 +78,8 @@ runtime-benchmarks = [ "parachain-template-runtime/runtime-benchmarks", "polkadot-cli/runtime-benchmarks", ] -try-runtime = [ - "parachain-template-runtime/try-runtime" -] +try-runtime = [ "parachain-template-runtime/try-runtime" ] network-protocol-staging = [ + "cumulus-client-service/network-protocol-staging", "polkadot-cli/network-protocol-staging", - "cumulus-client-service/network-protocol-staging" ] diff --git a/cumulus/parachain-template/pallets/template/Cargo.toml b/cumulus/parachain-template/pallets/template/Cargo.toml index 06481552533d..9235cbab5a5d 100644 --- a/cumulus/parachain-template/pallets/template/Cargo.toml +++ b/cumulus/parachain-template/pallets/template/Cargo.toml @@ -29,13 +29,13 @@ sp-io = { path = "../../../../substrate/primitives/io", default-features = false sp-runtime = { path = "../../../../substrate/primitives/runtime", default-features = false} [features] -default = ["std"] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] +default = [ "std" ] +runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks" ] std = [ "codec/std", - "scale-info/std", "frame-benchmarking/std", "frame-support/std", "frame-system/std", + "scale-info/std", ] try-runtime = [ "frame-support/try-runtime" ] diff --git a/cumulus/parachain-template/runtime/Cargo.toml b/cumulus/parachain-template/runtime/Cargo.toml index fa2b7f9c1d6e..c61df9dbc8ae 100644 --- a/cumulus/parachain-template/runtime/Cargo.toml +++ b/cumulus/parachain-template/runtime/Cargo.toml @@ -73,13 +73,9 @@ pallet-collator-selection = { path = "../../pallets/collator-selection", default parachain-info = { path = "../../parachains/pallets/parachain-info", default-features = false } [features] -default = [ - "std", -] +default = [ "std" ] std = [ "codec/std", - "log/std", - "scale-info/std", "cumulus-pallet-aura-ext/std", "cumulus-pallet-dmp-queue/std", "cumulus-pallet-parachain-system/std", @@ -91,13 +87,14 @@ std = [ "frame-support/std", "frame-system-rpc-runtime-api/std", "frame-system/std", + "log/std", "pallet-aura/std", "pallet-authorship/std", "pallet-balances/std", "pallet-collator-selection/std", + "pallet-parachain-template/std", "pallet-session/std", "pallet-sudo/std", - "pallet-parachain-template/std", "pallet-timestamp/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", @@ -105,6 +102,7 @@ std = [ "parachain-info/std", "polkadot-parachain/std", "polkadot-runtime-common/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-consensus-aura/std", @@ -116,29 +114,29 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", + "substrate-wasm-builder", "xcm-builder/std", "xcm-executor/std", "xcm/std", - "substrate-wasm-builder", ] runtime-benchmarks = [ - "hex-literal", + "cumulus-pallet-parachain-system/runtime-benchmarks", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", + "cumulus-pallet-xcmp-queue/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", + "hex-literal", "pallet-balances/runtime-benchmarks", "pallet-collator-selection/runtime-benchmarks", "pallet-parachain-template/runtime-benchmarks", - "pallet-timestamp/runtime-benchmarks", "pallet-sudo/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "xcm-builder/runtime-benchmarks", - "cumulus-pallet-parachain-system/runtime-benchmarks", - "cumulus-pallet-session-benchmarking/runtime-benchmarks", - "cumulus-pallet-xcmp-queue/runtime-benchmarks", ] try-runtime = [ @@ -154,9 +152,9 @@ try-runtime = [ "pallet-authorship/try-runtime", "pallet-balances/try-runtime", "pallet-collator-selection/try-runtime", + "pallet-parachain-template/try-runtime", "pallet-session/try-runtime", "pallet-sudo/try-runtime", - "pallet-parachain-template/try-runtime", "pallet-timestamp/try-runtime", "pallet-transaction-payment/try-runtime", "pallet-xcm/try-runtime", diff --git a/cumulus/parachains/common/Cargo.toml b/cumulus/parachains/common/Cargo.toml index 7862f798059a..5900ec9f3095 100644 --- a/cumulus/parachains/common/Cargo.toml +++ b/cumulus/parachains/common/Cargo.toml @@ -46,21 +46,21 @@ sp-io = { path = "../../../substrate/primitives/io", default-features = false} substrate-wasm-builder = { path = "../../../substrate/utils/wasm-builder" } [features] -default = ["std"] +default = [ "std" ] std = [ + "cumulus-primitives-core/std", + "cumulus-primitives-utility/std", "frame-support/std", "frame-system/std", "log/std", "pallet-assets/std", "pallet-authorship/std", "pallet-balances/std", + "pallet-collator-selection/std", "polkadot-primitives/std", "sp-consensus-aura/std", "sp-io/std", "sp-std/std", - "pallet-collator-selection/std", - "cumulus-primitives-core/std", - "cumulus-primitives-utility/std", - "xcm/std", "xcm-executor/std", + "xcm/std", ] diff --git a/cumulus/parachains/pallets/parachain-info/Cargo.toml b/cumulus/parachains/pallets/parachain-info/Cargo.toml index f899dc7250eb..11876b50abee 100644 --- a/cumulus/parachains/pallets/parachain-info/Cargo.toml +++ b/cumulus/parachains/pallets/parachain-info/Cargo.toml @@ -18,12 +18,12 @@ sp-std = { path = "../../../../substrate/primitives/std", default-features = fal cumulus-primitives-core = { path = "../../../primitives/core", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "scale-info/std", "cumulus-primitives-core/std", "frame-support/std", "frame-system/std", + "scale-info/std", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ "frame-support/try-runtime" ] diff --git a/cumulus/parachains/pallets/ping/Cargo.toml b/cumulus/parachains/pallets/ping/Cargo.toml index 292a66f6eb96..d883be6f430f 100644 --- a/cumulus/parachains/pallets/ping/Cargo.toml +++ b/cumulus/parachains/pallets/ping/Cargo.toml @@ -19,21 +19,21 @@ cumulus-primitives-core = { path = "../../../primitives/core", default-features cumulus-pallet-xcm = { path = "../../../pallets/xcm", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "scale-info/std", "cumulus-primitives-core/std", - "sp-std/std", - "sp-runtime/std", "frame-support/std", "frame-system/std", + "scale-info/std", + "sp-runtime/std", + "sp-std/std", "xcm/std", ] try-runtime = [ - "frame-system/try-runtime", - "frame-support/try-runtime", "cumulus-pallet-xcm/try-runtime", - "sp-runtime/try-runtime" + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime", ] diff --git a/cumulus/parachains/runtimes/assets/asset-hub-kusama/Cargo.toml b/cumulus/parachains/runtimes/assets/asset-hub-kusama/Cargo.toml index 27e8031136a2..682581a27b67 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-kusama/Cargo.toml +++ b/cumulus/parachains/runtimes/assets/asset-hub-kusama/Cargo.toml @@ -86,9 +86,7 @@ asset-test-utils = { path = "../test-utils" } substrate-wasm-builder = { path = "../../../../../substrate/utils/wasm-builder", optional = true } [features] -default = [ - "std", -] +default = [ "std" ] # When enabled the `state_version` is set to `1`. # This means that the chain will start using the new state format. The migration is lazy, so # it requires to write a storage value to use the new state format. To migrate all the other @@ -96,32 +94,32 @@ default = [ # This pallet will migrate the entire state, controlled through some account. # # This feature should be removed when the main-net will be migrated. -state-trie-version-1 = ["pallet-state-trie-migration"] +state-trie-version-1 = [ "pallet-state-trie-migration" ] runtime-benchmarks = [ + "assets-common/runtime-benchmarks", + "cumulus-pallet-parachain-system/runtime-benchmarks", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", + "cumulus-pallet-xcmp-queue/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", - "pallet-assets/runtime-benchmarks", "pallet-asset-conversion/runtime-benchmarks", + "pallet-assets/runtime-benchmarks", "pallet-balances/runtime-benchmarks", + "pallet-collator-selection/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", "pallet-nft-fractionalization/runtime-benchmarks", "pallet-nfts/runtime-benchmarks", "pallet-proxy/runtime-benchmarks", + "pallet-state-trie-migration/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-uniques/runtime-benchmarks", "pallet-utility/runtime-benchmarks", + "pallet-xcm-benchmarks/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "xcm-builder/runtime-benchmarks", - "cumulus-pallet-parachain-system/runtime-benchmarks", - "cumulus-pallet-session-benchmarking/runtime-benchmarks", - "pallet-collator-selection/runtime-benchmarks", - "cumulus-pallet-xcmp-queue/runtime-benchmarks", - "pallet-xcm-benchmarks/runtime-benchmarks", - "pallet-state-trie-migration/runtime-benchmarks", - "assets-common/runtime-benchmarks", ] try-runtime = [ "cumulus-pallet-aura-ext/try-runtime", @@ -133,8 +131,8 @@ try-runtime = [ "frame-system/try-runtime", "frame-try-runtime/try-runtime", "pallet-asset-conversion-tx-payment/try-runtime", - "pallet-assets/try-runtime", "pallet-asset-conversion/try-runtime", + "pallet-assets/try-runtime", "pallet-aura/try-runtime", "pallet-authorship/try-runtime", "pallet-balances/try-runtime", @@ -144,33 +142,41 @@ try-runtime = [ "pallet-nfts/try-runtime", "pallet-proxy/try-runtime", "pallet-session/try-runtime", + "pallet-state-trie-migration/try-runtime", "pallet-timestamp/try-runtime", "pallet-transaction-payment/try-runtime", "pallet-uniques/try-runtime", "pallet-utility/try-runtime", "pallet-xcm/try-runtime", "parachain-info/try-runtime", - "pallet-state-trie-migration/try-runtime", ] std = [ + "assets-common/std", "codec/std", - "log/std", - "scale-info/std", + "cumulus-pallet-aura-ext/std", + "cumulus-pallet-dmp-queue/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcm/std", + "cumulus-pallet-xcmp-queue/std", + "cumulus-primitives-core/std", + "cumulus-primitives-utility/std", "frame-executive/std", "frame-support/std", "frame-system-rpc-runtime-api/std", "frame-system/std", "kusama-runtime-constants/std", + "log/std", "pallet-asset-conversion-tx-payment/std", - "pallet-assets/std", "pallet-asset-conversion/std", + "pallet-assets/std", "pallet-aura/std", "pallet-authorship/std", "pallet-balances/std", + "pallet-collator-selection/std", "pallet-multisig/std", "pallet-nft-fractionalization/std", - "pallet-nfts/std", "pallet-nfts-runtime-api/std", + "pallet-nfts/std", "pallet-proxy/std", "pallet-session/std", "pallet-state-trie-migration/std", @@ -180,9 +186,12 @@ std = [ "pallet-uniques/std", "pallet-utility/std", "pallet-xcm/std", + "parachain-info/std", + "parachains-common/std", "polkadot-core-primitives/std", "polkadot-parachain/std", "polkadot-runtime-common/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-consensus-aura/std", @@ -194,21 +203,10 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", + "substrate-wasm-builder", "xcm-builder/std", "xcm-executor/std", "xcm/std", - "cumulus-pallet-aura-ext/std", - "cumulus-pallet-dmp-queue/std", - "cumulus-pallet-parachain-system/std", - "cumulus-pallet-xcm/std", - "cumulus-pallet-xcmp-queue/std", - "cumulus-primitives-core/std", - "cumulus-primitives-utility/std", - "pallet-collator-selection/std", - "parachain-info/std", - "parachains-common/std", - "assets-common/std", - "substrate-wasm-builder", ] experimental = [ "pallet-aura/experimental" ] diff --git a/cumulus/parachains/runtimes/assets/asset-hub-polkadot/Cargo.toml b/cumulus/parachains/runtimes/assets/asset-hub-polkadot/Cargo.toml index 4459d67bd3f6..dba374cfa070 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-polkadot/Cargo.toml +++ b/cumulus/parachains/runtimes/assets/asset-hub-polkadot/Cargo.toml @@ -82,32 +82,30 @@ asset-test-utils = { path = "../test-utils" } substrate-wasm-builder = { path = "../../../../../substrate/utils/wasm-builder", optional = true } [features] -default = [ - "std", -] +default = [ "std" ] runtime-benchmarks = [ - "hex-literal", + "assets-common/runtime-benchmarks", + "cumulus-pallet-parachain-system/runtime-benchmarks", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", + "cumulus-pallet-xcmp-queue/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", + "hex-literal", "pallet-assets/runtime-benchmarks", "pallet-balances/runtime-benchmarks", + "pallet-collator-selection/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", "pallet-nfts/runtime-benchmarks", "pallet-proxy/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-uniques/runtime-benchmarks", "pallet-utility/runtime-benchmarks", + "pallet-xcm-benchmarks/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "xcm-builder/runtime-benchmarks", - "cumulus-pallet-parachain-system/runtime-benchmarks", - "cumulus-pallet-session-benchmarking/runtime-benchmarks", - "pallet-collator-selection/runtime-benchmarks", - "cumulus-pallet-xcmp-queue/runtime-benchmarks", - "pallet-xcm-benchmarks/runtime-benchmarks", - "assets-common/runtime-benchmarks", ] try-runtime = [ "cumulus-pallet-aura-ext/try-runtime", @@ -136,21 +134,29 @@ try-runtime = [ "parachain-info/try-runtime", ] std = [ + "assets-common/std", "codec/std", - "log/std", - "scale-info/std", + "cumulus-pallet-aura-ext/std", + "cumulus-pallet-dmp-queue/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcm/std", + "cumulus-pallet-xcmp-queue/std", + "cumulus-primitives-core/std", + "cumulus-primitives-utility/std", "frame-executive/std", "frame-support/std", "frame-system-rpc-runtime-api/std", "frame-system/std", + "log/std", "pallet-asset-tx-payment/std", "pallet-assets/std", "pallet-aura/std", "pallet-authorship/std", "pallet-balances/std", + "pallet-collator-selection/std", "pallet-multisig/std", - "pallet-nfts/std", "pallet-nfts-runtime-api/std", + "pallet-nfts/std", "pallet-proxy/std", "pallet-session/std", "pallet-timestamp/std", @@ -159,10 +165,13 @@ std = [ "pallet-uniques/std", "pallet-utility/std", "pallet-xcm/std", + "parachain-info/std", + "parachains-common/std", "polkadot-core-primitives/std", "polkadot-parachain/std", "polkadot-runtime-common/std", "polkadot-runtime-constants/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-consensus-aura/std", @@ -174,21 +183,10 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", + "substrate-wasm-builder", "xcm-builder/std", "xcm-executor/std", "xcm/std", - "cumulus-pallet-aura-ext/std", - "cumulus-pallet-dmp-queue/std", - "cumulus-pallet-parachain-system/std", - "cumulus-pallet-xcm/std", - "cumulus-pallet-xcmp-queue/std", - "cumulus-primitives-core/std", - "cumulus-primitives-utility/std", - "pallet-collator-selection/std", - "parachain-info/std", - "parachains-common/std", - "assets-common/std", - "substrate-wasm-builder", ] experimental = [ "pallet-aura/experimental" ] diff --git a/cumulus/parachains/runtimes/assets/asset-hub-westend/Cargo.toml b/cumulus/parachains/runtimes/assets/asset-hub-westend/Cargo.toml index 4a26272cbd89..1e9c49cabe45 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-westend/Cargo.toml +++ b/cumulus/parachains/runtimes/assets/asset-hub-westend/Cargo.toml @@ -86,18 +86,21 @@ sp-io = { path = "../../../../../substrate/primitives/io" } substrate-wasm-builder = { path = "../../../../../substrate/utils/wasm-builder", optional = true } [features] -default = [ - "std", -] +default = [ "std" ] runtime-benchmarks = [ - "hex-literal", + "assets-common/runtime-benchmarks", + "cumulus-pallet-parachain-system/runtime-benchmarks", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", + "cumulus-pallet-xcmp-queue/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", - "pallet-assets/runtime-benchmarks", + "hex-literal", "pallet-asset-conversion/runtime-benchmarks", + "pallet-assets/runtime-benchmarks", "pallet-balances/runtime-benchmarks", + "pallet-collator-selection/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", "pallet-nft-fractionalization/runtime-benchmarks", "pallet-nfts/runtime-benchmarks", @@ -105,15 +108,10 @@ runtime-benchmarks = [ "pallet-timestamp/runtime-benchmarks", "pallet-uniques/runtime-benchmarks", "pallet-utility/runtime-benchmarks", + "pallet-xcm-benchmarks/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "cumulus-pallet-parachain-system/runtime-benchmarks", "xcm-builder/runtime-benchmarks", - "cumulus-pallet-session-benchmarking/runtime-benchmarks", - "pallet-collator-selection/runtime-benchmarks", - "cumulus-pallet-xcmp-queue/runtime-benchmarks", - "pallet-xcm-benchmarks/runtime-benchmarks", - "assets-common/runtime-benchmarks", ] try-runtime = [ "cumulus-pallet-aura-ext/try-runtime", @@ -125,8 +123,8 @@ try-runtime = [ "frame-system/try-runtime", "frame-try-runtime/try-runtime", "pallet-asset-conversion-tx-payment/try-runtime", - "pallet-assets/try-runtime", "pallet-asset-conversion/try-runtime", + "pallet-assets/try-runtime", "pallet-aura/try-runtime", "pallet-authorship/try-runtime", "pallet-balances/try-runtime", @@ -144,23 +142,31 @@ try-runtime = [ "parachain-info/try-runtime", ] std = [ + "assets-common/std", "codec/std", - "log/std", - "scale-info/std", + "cumulus-pallet-aura-ext/std", + "cumulus-pallet-dmp-queue/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcm/std", + "cumulus-pallet-xcmp-queue/std", + "cumulus-primitives-core/std", + "cumulus-primitives-utility/std", "frame-executive/std", "frame-support/std", "frame-system-rpc-runtime-api/std", "frame-system/std", + "log/std", "pallet-asset-conversion-tx-payment/std", - "pallet-assets/std", "pallet-asset-conversion/std", + "pallet-assets/std", "pallet-aura/std", "pallet-authorship/std", "pallet-balances/std", + "pallet-collator-selection/std", "pallet-multisig/std", "pallet-nft-fractionalization/std", - "pallet-nfts/std", "pallet-nfts-runtime-api/std", + "pallet-nfts/std", "pallet-proxy/std", "pallet-session/std", "pallet-timestamp/std", @@ -169,9 +175,12 @@ std = [ "pallet-uniques/std", "pallet-utility/std", "pallet-xcm/std", + "parachain-info/std", + "parachains-common/std", "polkadot-core-primitives/std", "polkadot-parachain/std", "polkadot-runtime-common/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-consensus-aura/std", @@ -183,22 +192,11 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", + "substrate-wasm-builder", "westend-runtime-constants/std", "xcm-builder/std", "xcm-executor/std", "xcm/std", - "cumulus-pallet-aura-ext/std", - "cumulus-pallet-dmp-queue/std", - "cumulus-pallet-parachain-system/std", - "cumulus-pallet-xcm/std", - "cumulus-pallet-xcmp-queue/std", - "cumulus-primitives-core/std", - "cumulus-primitives-utility/std", - "pallet-collator-selection/std", - "parachain-info/std", - "parachains-common/std", - "assets-common/std", - "substrate-wasm-builder", ] experimental = [ "pallet-aura/experimental" ] diff --git a/cumulus/parachains/runtimes/assets/common/Cargo.toml b/cumulus/parachains/runtimes/assets/common/Cargo.toml index 9eb6cb9f5adf..dc4f62f4fefc 100644 --- a/cumulus/parachains/runtimes/assets/common/Cargo.toml +++ b/cumulus/parachains/runtimes/assets/common/Cargo.toml @@ -36,19 +36,19 @@ substrate-wasm-builder = { path = "../../../../../substrate/utils/wasm-builder" default = [ "std" ] std = [ "codec/std", - "log/std", + "cumulus-primitives-core/std", "frame-support/std", + "log/std", "pallet-asset-conversion/std", "pallet-asset-tx-payment/std", + "pallet-xcm/std", "parachains-common/std", - "cumulus-primitives-core/std", "sp-api/std", - "sp-std/std", "sp-runtime/std", - "pallet-xcm/std", - "xcm/std", + "sp-std/std", "xcm-builder/std", "xcm-executor/std", + "xcm/std", ] runtime-benchmarks = [ diff --git a/cumulus/parachains/runtimes/assets/test-utils/Cargo.toml b/cumulus/parachains/runtimes/assets/test-utils/Cargo.toml index fbc21c72b465..919f1b805d59 100644 --- a/cumulus/parachains/runtimes/assets/test-utils/Cargo.toml +++ b/cumulus/parachains/runtimes/assets/test-utils/Cargo.toml @@ -48,29 +48,29 @@ substrate-wasm-builder = { path = "../../../../../substrate/utils/wasm-builder" [features] default = [ "std" ] std = [ - "cumulus-pallet-parachain-system/std", - "cumulus-primitives-core/std", - "cumulus-test-relay-sproof-builder/std", - "cumulus-primitives-parachain-inherent/std", - "frame-support/std", + "assets-common/std", + "cumulus-pallet-dmp-queue/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcmp-queue/std", + "cumulus-primitives-core/std", + "cumulus-primitives-parachain-inherent/std", + "cumulus-test-relay-sproof-builder/std", + "frame-support/std", "frame-system/std", "pallet-assets/std", "pallet-balances/std", - "cumulus-pallet-parachain-system/std", "pallet-collator-selection/std", - "pallet-session/std", - "assets-common/std", - "parachains-common/std", + "pallet-session/std", + "pallet-xcm/std", "parachain-info/std", + "parachains-common/std", "parachains-runtimes-test-utils/std", "polkadot-parachain/std", - "sp-consensus-aura/std", - "sp-io/std", - "sp-runtime/std", - "sp-std/std", - "xcm/std", - "xcm-executor/std", - "pallet-xcm/std", - "cumulus-pallet-xcmp-queue/std", - "cumulus-pallet-dmp-queue/std", + "sp-consensus-aura/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", + "xcm-executor/std", + "xcm/std", ] diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-kusama/Cargo.toml b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-kusama/Cargo.toml index 4666444f31e5..0dbe3ed9f261 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-kusama/Cargo.toml +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-kusama/Cargo.toml @@ -75,14 +75,9 @@ parachains-common = { path = "../../../common", default-features = false } bridge-hub-test-utils = { path = "../test-utils" } [features] -default = [ - "std", -] +default = [ "std" ] std = [ "codec/std", - "log/std", - "scale-info/std", - "serde", "cumulus-pallet-aura-ext/std", "cumulus-pallet-dmp-queue/std", "cumulus-pallet-parachain-system/std", @@ -95,6 +90,7 @@ std = [ "frame-system-rpc-runtime-api/std", "frame-system/std", "kusama-runtime-constants/std", + "log/std", "pallet-aura/std", "pallet-authorship/std", "pallet-balances/std", @@ -111,6 +107,8 @@ std = [ "polkadot-core-primitives/std", "polkadot-parachain/std", "polkadot-runtime-common/std", + "scale-info/std", + "serde", "sp-api/std", "sp-block-builder/std", "sp-consensus-aura/std", @@ -123,29 +121,29 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", + "substrate-wasm-builder", "xcm-builder/std", "xcm-executor/std", "xcm/std", - "substrate-wasm-builder", ] runtime-benchmarks = [ + "cumulus-pallet-parachain-system/runtime-benchmarks", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", + "cumulus-pallet-xcmp-queue/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", + "pallet-collator-selection/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-utility/runtime-benchmarks", + "pallet-xcm-benchmarks/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "xcm-builder/runtime-benchmarks", - "cumulus-pallet-parachain-system/runtime-benchmarks", - "cumulus-pallet-session-benchmarking/runtime-benchmarks", - "pallet-collator-selection/runtime-benchmarks", - "cumulus-pallet-xcmp-queue/runtime-benchmarks", - "pallet-xcm-benchmarks/runtime-benchmarks", ] try-runtime = [ diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/Cargo.toml b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/Cargo.toml index 92ca338393b6..9243f2918dbf 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/Cargo.toml +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/Cargo.toml @@ -75,14 +75,9 @@ parachains-common = { path = "../../../common", default-features = false } bridge-hub-test-utils = { path = "../test-utils" } [features] -default = [ - "std", -] +default = [ "std" ] std = [ "codec/std", - "log/std", - "scale-info/std", - "serde", "cumulus-pallet-aura-ext/std", "cumulus-pallet-dmp-queue/std", "cumulus-pallet-parachain-system/std", @@ -94,7 +89,7 @@ std = [ "frame-support/std", "frame-system-rpc-runtime-api/std", "frame-system/std", - "polkadot-runtime-constants/std", + "log/std", "pallet-aura/std", "pallet-authorship/std", "pallet-balances/std", @@ -111,6 +106,9 @@ std = [ "polkadot-core-primitives/std", "polkadot-parachain/std", "polkadot-runtime-common/std", + "polkadot-runtime-constants/std", + "scale-info/std", + "serde", "sp-api/std", "sp-block-builder/std", "sp-consensus-aura/std", @@ -123,29 +121,29 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", + "substrate-wasm-builder", "xcm-builder/std", "xcm-executor/std", "xcm/std", - "substrate-wasm-builder", ] runtime-benchmarks = [ + "cumulus-pallet-parachain-system/runtime-benchmarks", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", + "cumulus-pallet-xcmp-queue/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", + "pallet-collator-selection/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-utility/runtime-benchmarks", + "pallet-xcm-benchmarks/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "xcm-builder/runtime-benchmarks", - "cumulus-pallet-parachain-system/runtime-benchmarks", - "cumulus-pallet-session-benchmarking/runtime-benchmarks", - "pallet-collator-selection/runtime-benchmarks", - "cumulus-pallet-xcmp-queue/runtime-benchmarks", - "pallet-xcm-benchmarks/runtime-benchmarks", ] try-runtime = [ diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml index 861c26be3d81..5e049dbff108 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml @@ -95,9 +95,7 @@ bridge-runtime-common = { path = "../../../../bridges/bin/runtime-common", featu sp-keyring = { path = "../../../../../substrate/primitives/keyring" } [features] -default = [ - "std", -] +default = [ "std" ] std = [ "bp-bridge-hub-rococo/std", "bp-bridge-hub-wococo/std", @@ -106,14 +104,11 @@ std = [ "bp-parachains/std", "bp-polkadot-core/std", "bp-relayers/std", - "bp-runtime/std", "bp-rococo/std", + "bp-runtime/std", "bp-wococo/std", "bridge-runtime-common/std", "codec/std", - "log/std", - "scale-info/std", - "serde", "cumulus-pallet-aura-ext/std", "cumulus-pallet-dmp-queue/std", "cumulus-pallet-parachain-system/std", @@ -126,6 +121,7 @@ std = [ "frame-support/std", "frame-system-rpc-runtime-api/std", "frame-system/std", + "log/std", "pallet-aura/std", "pallet-authorship/std", "pallet-balances/std", @@ -147,6 +143,8 @@ std = [ "polkadot-parachain/std", "polkadot-runtime-common/std", "rococo-runtime-constants/std", + "scale-info/std", + "serde", "sp-api/std", "sp-block-builder/std", "sp-consensus-aura/std", @@ -159,14 +157,17 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", + "substrate-wasm-builder", "xcm-builder/std", "xcm-executor/std", "xcm/std", - "substrate-wasm-builder", ] runtime-benchmarks = [ "bridge-runtime-common/runtime-benchmarks", + "cumulus-pallet-parachain-system/runtime-benchmarks", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", + "cumulus-pallet-xcmp-queue/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", @@ -178,22 +179,15 @@ runtime-benchmarks = [ "pallet-bridge-relayers/runtime-benchmarks", "pallet-collator-selection/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", - "cumulus-pallet-parachain-system/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-utility/runtime-benchmarks", + "pallet-xcm-benchmarks/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "xcm-builder/runtime-benchmarks", - "cumulus-pallet-session-benchmarking/runtime-benchmarks", - "cumulus-pallet-xcmp-queue/runtime-benchmarks", - "pallet-xcm-benchmarks/runtime-benchmarks", ] try-runtime = [ - "pallet-bridge-grandpa/try-runtime", - "pallet-bridge-messages/try-runtime", - "pallet-bridge-parachains/try-runtime", - "pallet-bridge-relayers/try-runtime", "cumulus-pallet-aura-ext/try-runtime", "cumulus-pallet-dmp-queue/try-runtime", "cumulus-pallet-parachain-system/try-runtime", @@ -205,6 +199,10 @@ try-runtime = [ "pallet-aura/try-runtime", "pallet-authorship/try-runtime", "pallet-balances/try-runtime", + "pallet-bridge-grandpa/try-runtime", + "pallet-bridge-messages/try-runtime", + "pallet-bridge-parachains/try-runtime", + "pallet-bridge-relayers/try-runtime", "pallet-collator-selection/try-runtime", "pallet-multisig/try-runtime", "pallet-session/try-runtime", diff --git a/cumulus/parachains/runtimes/bridge-hubs/test-utils/Cargo.toml b/cumulus/parachains/runtimes/bridge-hubs/test-utils/Cargo.toml index 6a1913cb84c6..1efa805d6099 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/test-utils/Cargo.toml +++ b/cumulus/parachains/runtimes/bridge-hubs/test-utils/Cargo.toml @@ -59,41 +59,41 @@ bridge-runtime-common = { path = "../../../../bridges/bin/runtime-common", defau [features] default = [ "std" ] std = [ - "codec/std", - "log/std", - "frame-benchmarking/std", - "frame-executive/std", - "frame-support/std", - "frame-system/std", + "asset-test-utils/std", "bp-bridge-hub-rococo/std", "bp-bridge-hub-wococo/std", + "bp-header-chain/std", "bp-messages/std", "bp-parachains/std", "bp-polkadot-core/std", - "bp-header-chain/std", "bp-relayers/std", "bp-runtime/std", "bp-test-utils/std", "bridge-runtime-common/std", + "codec/std", + "cumulus-pallet-dmp-queue/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcmp-queue/std", + "frame-benchmarking/std", + "frame-executive/std", + "frame-support/std", + "frame-system/std", + "log/std", + "pallet-balances/std", "pallet-bridge-grandpa/std", - "pallet-bridge-parachains/std", "pallet-bridge-messages/std", + "pallet-bridge-parachains/std", "pallet-bridge-relayers/std", + "pallet-session/std", + "pallet-utility/std", + "pallet-xcm/std", "parachain-info/std", - "parachains-runtimes-test-utils/std", "parachains-common/std", - "cumulus-pallet-parachain-system/std", - "cumulus-pallet-xcmp-queue/std", - "pallet-xcm/std", + "parachains-runtimes-test-utils/std", "sp-core/std", "sp-io/std", "sp-runtime/std", - "xcm/std", "xcm-builder/std", "xcm-executor/std", - "asset-test-utils/std", - "cumulus-pallet-dmp-queue/std", - "pallet-session/std", - "pallet-balances/std", - "pallet-utility/std", + "xcm/std", ] diff --git a/cumulus/parachains/runtimes/collectives/collectives-polkadot/Cargo.toml b/cumulus/parachains/runtimes/collectives/collectives-polkadot/Cargo.toml index 3313c57e8b04..3d2f6e6ee2a1 100644 --- a/cumulus/parachains/runtimes/collectives/collectives-polkadot/Cargo.toml +++ b/cumulus/parachains/runtimes/collectives/collectives-polkadot/Cargo.toml @@ -82,34 +82,32 @@ substrate-wasm-builder = { path = "../../../../../substrate/utils/wasm-builder", sp-io = { path = "../../../../../substrate/primitives/io", default-features = false} [features] -default = [ - "std", -] +default = [ "std" ] runtime-benchmarks = [ + "cumulus-pallet-parachain-system/runtime-benchmarks", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", + "cumulus-pallet-xcmp-queue/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-alliance/runtime-benchmarks", "pallet-balances/runtime-benchmarks", + "pallet-collator-selection/runtime-benchmarks", "pallet-collective/runtime-benchmarks", + "pallet-core-fellowship/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", + "pallet-preimage/runtime-benchmarks", "pallet-proxy/runtime-benchmarks", + "pallet-ranked-collective/runtime-benchmarks", + "pallet-referenda/runtime-benchmarks", + "pallet-salary/runtime-benchmarks", + "pallet-scheduler/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "xcm-builder/runtime-benchmarks", - "cumulus-pallet-parachain-system/runtime-benchmarks", - "cumulus-pallet-session-benchmarking/runtime-benchmarks", - "pallet-collator-selection/runtime-benchmarks", - "cumulus-pallet-xcmp-queue/runtime-benchmarks", - "pallet-scheduler/runtime-benchmarks", - "pallet-preimage/runtime-benchmarks", - "pallet-referenda/runtime-benchmarks", - "pallet-ranked-collective/runtime-benchmarks", - "pallet-core-fellowship/runtime-benchmarks", - "pallet-salary/runtime-benchmarks", ] try-runtime = [ "cumulus-pallet-aura-ext/try-runtime", @@ -124,48 +122,64 @@ try-runtime = [ "pallet-aura/try-runtime", "pallet-authorship/try-runtime", "pallet-balances/try-runtime", - "pallet-collective/try-runtime", "pallet-collator-selection/try-runtime", + "pallet-collective/try-runtime", + "pallet-core-fellowship/try-runtime", "pallet-multisig/try-runtime", + "pallet-preimage/try-runtime", "pallet-proxy/try-runtime", + "pallet-ranked-collective/try-runtime", + "pallet-referenda/try-runtime", + "pallet-salary/try-runtime", + "pallet-scheduler/try-runtime", "pallet-session/try-runtime", "pallet-timestamp/try-runtime", "pallet-transaction-payment/try-runtime", "pallet-utility/try-runtime", "pallet-xcm/try-runtime", "parachain-info/try-runtime", - "pallet-scheduler/try-runtime", - "pallet-preimage/try-runtime", - "pallet-referenda/try-runtime", - "pallet-ranked-collective/try-runtime", - "pallet-core-fellowship/try-runtime", - "pallet-salary/try-runtime", ] std = [ "codec/std", - "log/std", - "scale-info/std", + "cumulus-pallet-aura-ext/std", + "cumulus-pallet-dmp-queue/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcm/std", + "cumulus-pallet-xcmp-queue/std", + "cumulus-primitives-core/std", + "cumulus-primitives-utility/std", "frame-executive/std", "frame-support/std", "frame-system-rpc-runtime-api/std", "frame-system/std", + "log/std", "pallet-alliance/std", "pallet-aura/std", "pallet-authorship/std", "pallet-balances/std", + "pallet-collator-selection/std", "pallet-collective/std", + "pallet-core-fellowship/std", "pallet-multisig/std", + "pallet-preimage/std", "pallet-proxy/std", + "pallet-ranked-collective/std", + "pallet-referenda/std", + "pallet-salary/std", + "pallet-scheduler/std", "pallet-session/std", "pallet-timestamp/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", "pallet-utility/std", "pallet-xcm/std", + "parachain-info/std", + "parachains-common/std", "polkadot-core-primitives/std", "polkadot-parachain/std", "polkadot-runtime-common/std", "polkadot-runtime-constants/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-consensus-aura/std", @@ -177,26 +191,10 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", + "substrate-wasm-builder", "xcm-builder/std", "xcm-executor/std", "xcm/std", - "cumulus-pallet-aura-ext/std", - "cumulus-pallet-dmp-queue/std", - "cumulus-pallet-parachain-system/std", - "cumulus-pallet-xcm/std", - "cumulus-pallet-xcmp-queue/std", - "cumulus-primitives-core/std", - "cumulus-primitives-utility/std", - "pallet-collator-selection/std", - "parachain-info/std", - "parachains-common/std", - "pallet-scheduler/std", - "pallet-preimage/std", - "pallet-referenda/std", - "pallet-ranked-collective/std", - "substrate-wasm-builder", - "pallet-core-fellowship/std", - "pallet-salary/std", ] experimental = [ "pallet-aura/experimental" ] diff --git a/cumulus/parachains/runtimes/contracts/contracts-rococo/Cargo.toml b/cumulus/parachains/runtimes/contracts/contracts-rococo/Cargo.toml index f732e4f71e7b..67885ded6075 100644 --- a/cumulus/parachains/runtimes/contracts/contracts-rococo/Cargo.toml +++ b/cumulus/parachains/runtimes/contracts/contracts-rococo/Cargo.toml @@ -75,27 +75,31 @@ parachain-info = { path = "../../../pallets/parachain-info", default-features = parachains-common = { path = "../../../common", default-features = false } [features] -default = [ - "std", -] +default = [ "std" ] std = [ "codec/std", - "log/std", - "scale-info/std", + "cumulus-pallet-aura-ext/std", + "cumulus-pallet-dmp-queue/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcm/std", + "cumulus-pallet-xcmp-queue/std", + "cumulus-primitives-core/std", + "cumulus-primitives-utility/std", "frame-executive/std", "frame-support/std", "frame-system-rpc-runtime-api/std", "frame-system/std", - "frame-try-runtime/std", + "frame-try-runtime/std", "kusama-runtime-constants/std", + "log/std", "pallet-aura/std", "pallet-authorship/std", "pallet-balances/std", "pallet-collator-selection/std", "pallet-contracts-primitives/std", "pallet-contracts/std", - "pallet-multisig/std", "pallet-insecure-randomness-collective-flip/std", + "pallet-multisig/std", "pallet-session/std", "pallet-sudo/std", "pallet-timestamp/std", @@ -108,6 +112,7 @@ std = [ "polkadot-core-primitives/std", "polkadot-parachain/std", "polkadot-runtime-common/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-consensus-aura/std", @@ -119,25 +124,20 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", + "substrate-wasm-builder", "xcm-builder/std", "xcm-executor/std", "xcm/std", - "cumulus-pallet-aura-ext/std", - "cumulus-pallet-dmp-queue/std", - "cumulus-pallet-parachain-system/std", - "cumulus-pallet-xcm/std", - "cumulus-pallet-xcmp-queue/std", - "cumulus-primitives-core/std", - "cumulus-primitives-utility/std", - "substrate-wasm-builder", ] runtime-benchmarks = [ - "hex-literal", + "cumulus-pallet-parachain-system/runtime-benchmarks", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", + "hex-literal", "pallet-balances/runtime-benchmarks", "pallet-collator-selection/runtime-benchmarks", "pallet-contracts/runtime-benchmarks", @@ -148,8 +148,6 @@ runtime-benchmarks = [ "pallet-xcm/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "xcm-builder/runtime-benchmarks", - "cumulus-pallet-parachain-system/runtime-benchmarks", - "cumulus-pallet-session-benchmarking/runtime-benchmarks", ] try-runtime = [ @@ -166,8 +164,8 @@ try-runtime = [ "pallet-balances/try-runtime", "pallet-collator-selection/try-runtime", "pallet-contracts/try-runtime", - "pallet-multisig/try-runtime", "pallet-insecure-randomness-collective-flip/try-runtime", + "pallet-multisig/try-runtime", "pallet-session/try-runtime", "pallet-sudo/try-runtime", "pallet-timestamp/try-runtime", diff --git a/cumulus/parachains/runtimes/glutton/glutton-kusama/Cargo.toml b/cumulus/parachains/runtimes/glutton/glutton-kusama/Cargo.toml index b5eaa754c9e3..43bf468c7954 100644 --- a/cumulus/parachains/runtimes/glutton/glutton-kusama/Cargo.toml +++ b/cumulus/parachains/runtimes/glutton/glutton-kusama/Cargo.toml @@ -46,27 +46,30 @@ parachains-common = { path = "../../../common", default-features = false } substrate-wasm-builder = { path = "../../../../../substrate/utils/wasm-builder" } [features] -default = [ - "std", -] +default = [ "std" ] runtime-benchmarks = [ + "cumulus-pallet-parachain-system/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-glutton/runtime-benchmarks", - "cumulus-pallet-parachain-system/runtime-benchmarks", "xcm-builder/runtime-benchmarks", ] std = [ "codec/std", - "scale-info/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcm/std", + "cumulus-primitives-core/std", "frame-executive/std", "frame-support/std", - "frame-system/std", "frame-system-rpc-runtime-api/std", + "frame-system/std", "pallet-glutton/std", "pallet-sudo/std", + "parachain-info/std", + "parachains-common/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-core/std", @@ -80,11 +83,6 @@ std = [ "xcm-builder/std", "xcm-executor/std", "xcm/std", - "cumulus-pallet-parachain-system/std", - "cumulus-pallet-xcm/std", - "cumulus-primitives-core/std", - "parachain-info/std", - "parachains-common/std", ] try-runtime = [ "frame-executive/try-runtime", diff --git a/cumulus/parachains/runtimes/starters/seedling/Cargo.toml b/cumulus/parachains/runtimes/starters/seedling/Cargo.toml index 683ceef13afc..1dfad06616ad 100644 --- a/cumulus/parachains/runtimes/starters/seedling/Cargo.toml +++ b/cumulus/parachains/runtimes/starters/seedling/Cargo.toml @@ -36,17 +36,20 @@ cumulus-primitives-core = { path = "../../../../primitives/core", default-featur substrate-wasm-builder = { path = "../../../../../substrate/utils/wasm-builder", optional = true } [features] -default = [ - "std", -] +default = [ "std" ] std = [ "codec/std", - "scale-info/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-solo-to-para/std", + "cumulus-primitives-core/std", "frame-executive/std", "frame-support/std", "frame-system/std", "pallet-balances/std", "pallet-sudo/std", + "parachain-info/std", + "parachains-common/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-core/std", @@ -57,10 +60,5 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", - "cumulus-pallet-parachain-system/std", - "cumulus-pallet-solo-to-para/std", - "cumulus-primitives-core/std", - "parachain-info/std", - "parachains-common/std", "substrate-wasm-builder", ] diff --git a/cumulus/parachains/runtimes/starters/shell/Cargo.toml b/cumulus/parachains/runtimes/starters/shell/Cargo.toml index eb7da45a6d51..d15270482096 100644 --- a/cumulus/parachains/runtimes/starters/shell/Cargo.toml +++ b/cumulus/parachains/runtimes/starters/shell/Cargo.toml @@ -40,15 +40,18 @@ parachains-common = { path = "../../../common", default-features = false } substrate-wasm-builder = { path = "../../../../../substrate/utils/wasm-builder", optional = true } [features] -default = [ - "std", -] +default = [ "std" ] std = [ "codec/std", - "scale-info/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcm/std", + "cumulus-primitives-core/std", "frame-executive/std", "frame-support/std", "frame-system/std", + "parachain-info/std", + "parachains-common/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-core/std", @@ -59,17 +62,9 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", + "substrate-wasm-builder", "xcm-builder/std", "xcm-executor/std", "xcm/std", - "cumulus-pallet-parachain-system/std", - "cumulus-pallet-xcm/std", - "cumulus-primitives-core/std", - "parachain-info/std", - "parachains-common/std", - "substrate-wasm-builder", -] -try-runtime = [ - "frame-executive/try-runtime", - "frame-try-runtime/try-runtime", ] +try-runtime = [ "frame-executive/try-runtime", "frame-try-runtime/try-runtime" ] diff --git a/cumulus/parachains/runtimes/test-utils/Cargo.toml b/cumulus/parachains/runtimes/test-utils/Cargo.toml index ee9260712fae..6fbda857afd5 100644 --- a/cumulus/parachains/runtimes/test-utils/Cargo.toml +++ b/cumulus/parachains/runtimes/test-utils/Cargo.toml @@ -48,28 +48,28 @@ substrate-wasm-builder = { path = "../../../../substrate/utils/wasm-builder" } [features] default = [ "std" ] std = [ + "assets-common/std", + "cumulus-pallet-dmp-queue/std", "cumulus-pallet-parachain-system/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcmp-queue/std", "cumulus-primitives-core/std", - "cumulus-test-relay-sproof-builder/std", "cumulus-primitives-parachain-inherent/std", + "cumulus-test-relay-sproof-builder/std", "frame-support/std", "frame-system/std", "pallet-assets/std", "pallet-balances/std", - "cumulus-pallet-parachain-system/std", "pallet-collator-selection/std", "pallet-session/std", - "assets-common/std", - "parachains-common/std", + "pallet-xcm/std", "parachain-info/std", + "parachains-common/std", "polkadot-parachain/std", "sp-consensus-aura/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "xcm/std", "xcm-executor/std", - "pallet-xcm/std", - "cumulus-pallet-xcmp-queue/std", - "cumulus-pallet-dmp-queue/std", + "xcm/std", ] diff --git a/cumulus/parachains/runtimes/testing/penpal/Cargo.toml b/cumulus/parachains/runtimes/testing/penpal/Cargo.toml index d76f161a7acb..dc945abe79f1 100644 --- a/cumulus/parachains/runtimes/testing/penpal/Cargo.toml +++ b/cumulus/parachains/runtimes/testing/penpal/Cargo.toml @@ -75,13 +75,9 @@ parachain-info = { path = "../../../pallets/parachain-info", default-features = parachains-common = { path = "../../../common", default-features = false } [features] -default = [ - "std", -] +default = [ "std" ] std = [ "codec/std", - "log/std", - "scale-info/std", "cumulus-pallet-aura-ext/std", "cumulus-pallet-dmp-queue/std", "cumulus-pallet-parachain-system/std", @@ -93,6 +89,9 @@ std = [ "frame-support/std", "frame-system-rpc-runtime-api/std", "frame-system/std", + "log/std", + "pallet-asset-tx-payment/std", + "pallet-assets/std", "pallet-aura/std", "pallet-authorship/std", "pallet-balances/std", @@ -102,14 +101,13 @@ std = [ "pallet-timestamp/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", - "pallet-assets/std", - "pallet-asset-tx-payment/std", "pallet-xcm/std", - "polkadot-primitives/std", "parachain-info/std", "parachains-common/std", "polkadot-parachain/std", + "polkadot-primitives/std", "polkadot-runtime-common/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-consensus-aura/std", @@ -121,18 +119,20 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", + "substrate-wasm-builder", "xcm-builder/std", "xcm-executor/std", "xcm/std", - "substrate-wasm-builder", ] runtime-benchmarks = [ - "hex-literal", + "cumulus-pallet-session-benchmarking/runtime-benchmarks", + "cumulus-pallet-xcmp-queue/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", + "hex-literal", "pallet-assets/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-collator-selection/runtime-benchmarks", @@ -141,8 +141,6 @@ runtime-benchmarks = [ "pallet-xcm/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "xcm-builder/runtime-benchmarks", - "cumulus-pallet-session-benchmarking/runtime-benchmarks", - "cumulus-pallet-xcmp-queue/runtime-benchmarks", ] try-runtime = [ @@ -154,6 +152,8 @@ try-runtime = [ "frame-executive/try-runtime", "frame-system/try-runtime", "frame-try-runtime/try-runtime", + "pallet-asset-tx-payment/try-runtime", + "pallet-assets/try-runtime", "pallet-aura/try-runtime", "pallet-authorship/try-runtime", "pallet-balances/try-runtime", @@ -162,8 +162,6 @@ try-runtime = [ "pallet-sudo/try-runtime", "pallet-timestamp/try-runtime", "pallet-transaction-payment/try-runtime", - "pallet-assets/try-runtime", - "pallet-asset-tx-payment/try-runtime", "pallet-xcm/try-runtime", "parachain-info/try-runtime", ] diff --git a/cumulus/parachains/runtimes/testing/rococo-parachain/Cargo.toml b/cumulus/parachains/runtimes/testing/rococo-parachain/Cargo.toml index 79d5691ff45d..9a16d3d9e692 100644 --- a/cumulus/parachains/runtimes/testing/rococo-parachain/Cargo.toml +++ b/cumulus/parachains/runtimes/testing/rococo-parachain/Cargo.toml @@ -57,12 +57,17 @@ parachain-info = { path = "../../../pallets/parachain-info", default-features = substrate-wasm-builder = { path = "../../../../../substrate/utils/wasm-builder", optional = true } [features] -default = [ - "std", -] +default = [ "std" ] std = [ "codec/std", - "scale-info/std", + "cumulus-pallet-aura-ext/std", + "cumulus-pallet-dmp-queue/std", + "cumulus-pallet-parachain-system/std", + "cumulus-pallet-xcm/std", + "cumulus-pallet-xcmp-queue/std", + "cumulus-ping/std", + "cumulus-primitives-core/std", + "cumulus-primitives-utility/std", "frame-executive/std", "frame-support/std", "frame-system-rpc-runtime-api/std", @@ -75,6 +80,9 @@ std = [ "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", "pallet-xcm/std", + "parachain-info/std", + "parachains-common/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-consensus-aura/std", @@ -86,20 +94,10 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", + "substrate-wasm-builder", "xcm-builder/std", "xcm-executor/std", "xcm/std", - "cumulus-pallet-aura-ext/std", - "cumulus-pallet-dmp-queue/std", - "cumulus-pallet-parachain-system/std", - "cumulus-pallet-xcm/std", - "cumulus-pallet-xcmp-queue/std", - "cumulus-ping/std", - "cumulus-primitives-core/std", - "cumulus-primitives-utility/std", - "parachain-info/std", - "parachains-common/std", - "substrate-wasm-builder", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", diff --git a/cumulus/polkadot-parachain/Cargo.toml b/cumulus/polkadot-parachain/Cargo.toml index 4049f1001a18..ad7c6e19ac35 100644 --- a/cumulus/polkadot-parachain/Cargo.toml +++ b/cumulus/polkadot-parachain/Cargo.toml @@ -105,22 +105,22 @@ wait-timeout = "0.2" [features] default = [] runtime-benchmarks = [ - "polkadot-service/runtime-benchmarks", - "asset-hub-polkadot-runtime/runtime-benchmarks", "asset-hub-kusama-runtime/runtime-benchmarks", + "asset-hub-polkadot-runtime/runtime-benchmarks", "asset-hub-westend-runtime/runtime-benchmarks", - "bridge-hub-rococo-runtime/runtime-benchmarks", "bridge-hub-kusama-runtime/runtime-benchmarks", "bridge-hub-polkadot-runtime/runtime-benchmarks", + "bridge-hub-rococo-runtime/runtime-benchmarks", "collectives-polkadot-runtime/runtime-benchmarks", - "rococo-parachain-runtime/runtime-benchmarks", "contracts-rococo-runtime/runtime-benchmarks", "contracts-rococo-runtime/runtime-benchmarks", "penpal-runtime/runtime-benchmarks", + "polkadot-service/runtime-benchmarks", + "rococo-parachain-runtime/runtime-benchmarks", ] try-runtime = [ - "asset-hub-polkadot-runtime/try-runtime", "asset-hub-kusama-runtime/try-runtime", + "asset-hub-polkadot-runtime/try-runtime", "asset-hub-westend-runtime/try-runtime", "shell-runtime/try-runtime", ] diff --git a/cumulus/primitives/aura/Cargo.toml b/cumulus/primitives/aura/Cargo.toml index c640a82c6239..f03495c19060 100644 --- a/cumulus/primitives/aura/Cargo.toml +++ b/cumulus/primitives/aura/Cargo.toml @@ -21,10 +21,10 @@ polkadot-primitives = { path = "../../../polkadot/primitives", default-features default = [ "std" ] std = [ "codec/std", + "polkadot-core-primitives/std", + "polkadot-primitives/std", "sp-api/std", "sp-consensus-aura/std", "sp-runtime/std", "sp-std/std", - "polkadot-core-primitives/std", - "polkadot-primitives/std", ] diff --git a/cumulus/primitives/core/Cargo.toml b/cumulus/primitives/core/Cargo.toml index bdecfcb1abb6..872278ad295e 100644 --- a/cumulus/primitives/core/Cargo.toml +++ b/cumulus/primitives/core/Cargo.toml @@ -24,12 +24,12 @@ xcm = { path = "../../../polkadot/xcm", default-features = false} default = [ "std" ] std = [ "codec/std", + "polkadot-core-primitives/std", + "polkadot-parachain/std", + "polkadot-primitives/std", "scale-info/std", "sp-api/std", "sp-runtime/std", "sp-std/std", "sp-trie/std", - "polkadot-core-primitives/std", - "polkadot-parachain/std", - "polkadot-primitives/std", ] diff --git a/cumulus/primitives/parachain-inherent/Cargo.toml b/cumulus/primitives/parachain-inherent/Cargo.toml index b0c0f795437e..ffcc0a47cc2b 100644 --- a/cumulus/primitives/parachain-inherent/Cargo.toml +++ b/cumulus/primitives/parachain-inherent/Cargo.toml @@ -31,9 +31,11 @@ default = [ "std" ] std = [ "async-trait", "codec/std", - "scale-info/std", - "tracing", + "cumulus-primitives-core/std", + "cumulus-relay-chain-interface", + "cumulus-test-relay-sproof-builder", "sc-client-api", + "scale-info/std", "sp-api", "sp-core/std", "sp-inherents/std", @@ -42,7 +44,5 @@ std = [ "sp-std/std", "sp-storage", "sp-trie/std", - "cumulus-primitives-core/std", - "cumulus-relay-chain-interface", - "cumulus-test-relay-sproof-builder", + "tracing", ] diff --git a/cumulus/primitives/timestamp/Cargo.toml b/cumulus/primitives/timestamp/Cargo.toml index 4747eee7d61c..e26c02f2b076 100644 --- a/cumulus/primitives/timestamp/Cargo.toml +++ b/cumulus/primitives/timestamp/Cargo.toml @@ -20,8 +20,8 @@ cumulus-primitives-core = { path = "../core", default-features = false } [features] default = [ "std" ] std = [ + "cumulus-primitives-core/std", "sp-inherents/std", "sp-std/std", "sp-timestamp/std", - "cumulus-primitives-core/std", ] diff --git a/cumulus/primitives/utility/Cargo.toml b/cumulus/primitives/utility/Cargo.toml index 32c643523b8a..7302d28f0249 100644 --- a/cumulus/primitives/utility/Cargo.toml +++ b/cumulus/primitives/utility/Cargo.toml @@ -28,13 +28,13 @@ cumulus-primitives-core = { path = "../core", default-features = false } default = [ "std" ] std = [ "codec/std", + "cumulus-primitives-core/std", "frame-support/std", + "polkadot-runtime-common/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "sp-io/std", - "polkadot-runtime-common/std", - "cumulus-primitives-core/std", - "xcm/std", "xcm-builder/std", "xcm-executor/std", + "xcm/std", ] diff --git a/cumulus/test/relay-sproof-builder/Cargo.toml b/cumulus/test/relay-sproof-builder/Cargo.toml index 7b8c74635711..1f7aaf4d584d 100644 --- a/cumulus/test/relay-sproof-builder/Cargo.toml +++ b/cumulus/test/relay-sproof-builder/Cargo.toml @@ -23,9 +23,9 @@ cumulus-primitives-core = { path = "../../primitives/core", default-features = f default = [ "std" ] std = [ "codec/std", + "cumulus-primitives-core/std", "sp-runtime/std", "sp-state-machine/std", - "sp-trie/std", "sp-std/std", - "cumulus-primitives-core/std", + "sp-trie/std", ] diff --git a/cumulus/test/runtime/Cargo.toml b/cumulus/test/runtime/Cargo.toml index 236490b35f67..fd372835f1fc 100644 --- a/cumulus/test/runtime/Cargo.toml +++ b/cumulus/test/runtime/Cargo.toml @@ -38,22 +38,22 @@ cumulus-primitives-core = { path = "../../primitives/core", default-features = f substrate-wasm-builder = { path = "../../../substrate/utils/wasm-builder", optional = true } [features] -default = [ - "std", -] +default = [ "std" ] std = [ "codec/std", - "scale-info/std", + "cumulus-pallet-parachain-system/std", + "cumulus-primitives-core/std", "frame-executive/std", "frame-support/std", "frame-system-rpc-runtime-api/std", "frame-system/std", "pallet-balances/std", - "pallet-sudo/std", "pallet-glutton/std", + "pallet-glutton/std", + "pallet-sudo/std", "pallet-timestamp/std", "pallet-transaction-payment/std", - "pallet-glutton/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-core/std", @@ -65,8 +65,6 @@ std = [ "sp-std/std", "sp-transaction-pool/std", "sp-version/std", - "cumulus-pallet-parachain-system/std", - "cumulus-primitives-core/std", "substrate-wasm-builder", ] increment-spec-version = [] diff --git a/cumulus/test/service/Cargo.toml b/cumulus/test/service/Cargo.toml index 70c21abdfb93..70d6e94cab3d 100644 --- a/cumulus/test/service/Cargo.toml +++ b/cumulus/test/service/Cargo.toml @@ -96,7 +96,7 @@ sc-cli = { path = "../../../substrate/client/cli" } substrate-test-utils = { path = "../../../substrate/test-utils" } [features] -runtime-benchmarks = ["polkadot-test-service/runtime-benchmarks"] +runtime-benchmarks = [ "polkadot-test-service/runtime-benchmarks" ] [[bench]] name = "transaction_throughput" diff --git a/polkadot/Cargo.toml b/polkadot/Cargo.toml index 69d7ce724f95..561b49ab4204 100644 --- a/polkadot/Cargo.toml +++ b/polkadot/Cargo.toml @@ -130,11 +130,11 @@ debug-assertions = true overflow-checks = true [features] -runtime-benchmarks = ["polkadot-cli/runtime-benchmarks"] -try-runtime = ["polkadot-cli/try-runtime"] -fast-runtime = ["polkadot-cli/fast-runtime"] -runtime-metrics = ["polkadot-cli/runtime-metrics"] -pyroscope = ["polkadot-cli/pyroscope"] +runtime-benchmarks = [ "polkadot-cli/runtime-benchmarks" ] +try-runtime = [ "polkadot-cli/try-runtime" ] +fast-runtime = [ "polkadot-cli/fast-runtime" ] +runtime-metrics = [ "polkadot-cli/runtime-metrics" ] +pyroscope = [ "polkadot-cli/pyroscope" ] jemalloc-allocator = [ "polkadot-node-core-pvf-prepare-worker/jemalloc-allocator", "polkadot-overseer/jemalloc-allocator", @@ -142,7 +142,7 @@ jemalloc-allocator = [ # Enables timeout-based tests supposed to be run only in CI environment as they may be flaky # when run locally depending on system load -ci-only-tests = ["polkadot-node-core-pvf/ci-only-tests"] +ci-only-tests = [ "polkadot-node-core-pvf/ci-only-tests" ] # Configuration for building a .deb package - for use with `cargo-deb` [package.metadata.deb] diff --git a/polkadot/cli/Cargo.toml b/polkadot/cli/Cargo.toml index ac90fa44f489..d6db9704062f 100644 --- a/polkadot/cli/Cargo.toml +++ b/polkadot/cli/Cargo.toml @@ -43,36 +43,39 @@ sc-storage-monitor = { path = "../../substrate/client/storage-monitor" } substrate-build-script-utils = { path = "../../substrate/utils/build-script-utils" } [features] -default = ["db", "cli", "full-node"] -db = ["service/db"] +default = [ "cli", "db", "full-node" ] +db = [ "service/db" ] cli = [ "clap", + "frame-benchmarking-cli", "sc-cli", "sc-service", "sc-tracing", - "frame-benchmarking-cli", - "try-runtime-cli", "service", + "try-runtime-cli", ] runtime-benchmarks = [ - "service/runtime-benchmarks", "polkadot-node-metrics/runtime-benchmarks", - "polkadot-performance-test?/runtime-benchmarks" + "polkadot-performance-test?/runtime-benchmarks", + "service/runtime-benchmarks", ] -full-node = ["service/full-node"] -try-runtime = ["service/try-runtime", "try-runtime-cli/try-runtime"] -fast-runtime = ["service/fast-runtime"] -pyroscope = ["pyro", "pyroscope_pprofrs"] -hostperfcheck = ["polkadot-performance-test"] +full-node = [ "service/full-node" ] +try-runtime = [ "service/try-runtime", "try-runtime-cli/try-runtime" ] +fast-runtime = [ "service/fast-runtime" ] +pyroscope = [ "pyro", "pyroscope_pprofrs" ] +hostperfcheck = [ "polkadot-performance-test" ] # Configure the native runtimes to use. Polkadot is enabled by default. # # Validators require the native runtime currently -polkadot-native = ["service/polkadot-native"] -kusama-native = ["service/kusama-native"] -westend-native = ["service/westend-native"] -rococo-native = ["service/rococo-native"] +polkadot-native = [ "service/polkadot-native" ] +kusama-native = [ "service/kusama-native" ] +westend-native = [ "service/westend-native" ] +rococo-native = [ "service/rococo-native" ] -malus = ["full-node", "service/malus"] -runtime-metrics = ["service/runtime-metrics", "polkadot-node-metrics/runtime-metrics"] -network-protocol-staging = ["service/network-protocol-staging"] +malus = [ "full-node", "service/malus" ] +runtime-metrics = [ + "polkadot-node-metrics/runtime-metrics", + "service/runtime-metrics", +] +network-protocol-staging = [ "service/network-protocol-staging" ] diff --git a/polkadot/core-primitives/Cargo.toml b/polkadot/core-primitives/Cargo.toml index 36f042c219e7..0b37414a19d2 100644 --- a/polkadot/core-primitives/Cargo.toml +++ b/polkadot/core-primitives/Cargo.toml @@ -15,10 +15,10 @@ parity-scale-codec = { version = "3.6.1", default-features = false, features = [ [features] default = [ "std" ] std = [ + "parity-scale-codec/std", + "scale-info/std", "scale-info/std", "sp-core/std", "sp-runtime/std", "sp-std/std", - "scale-info/std", - "parity-scale-codec/std", ] diff --git a/polkadot/node/core/pvf/Cargo.toml b/polkadot/node/core/pvf/Cargo.toml index 2936e322f0c6..872ab0107cb8 100644 --- a/polkadot/node/core/pvf/Cargo.toml +++ b/polkadot/node/core/pvf/Cargo.toml @@ -56,4 +56,8 @@ halt = { package = "test-parachain-halt", path = "../../../parachain/test-parach ci-only-tests = [] # This feature is used to export test code to other crates without putting it in the production build. # This is also used by the `puppet_worker` binary. -test-utils = ["polkadot-node-core-pvf-prepare-worker", "polkadot-node-core-pvf-execute-worker", "sp-tracing"] +test-utils = [ + "polkadot-node-core-pvf-execute-worker", + "polkadot-node-core-pvf-prepare-worker", + "sp-tracing", +] diff --git a/polkadot/node/core/pvf/common/Cargo.toml b/polkadot/node/core/pvf/common/Cargo.toml index 25c6069c8ba3..fd4dac08dd1f 100644 --- a/polkadot/node/core/pvf/common/Cargo.toml +++ b/polkadot/node/core/pvf/common/Cargo.toml @@ -37,4 +37,4 @@ tempfile = "3.3.0" [features] # This feature is used to export test code to other crates without putting it in the production build. # Also used for building the puppet worker. -test-utils = ["sp-tracing"] +test-utils = [ "sp-tracing" ] diff --git a/polkadot/node/core/pvf/prepare-worker/Cargo.toml b/polkadot/node/core/pvf/prepare-worker/Cargo.toml index 161c0b943bc2..61d2fd971564 100644 --- a/polkadot/node/core/pvf/prepare-worker/Cargo.toml +++ b/polkadot/node/core/pvf/prepare-worker/Cargo.toml @@ -32,4 +32,4 @@ tikv-jemalloc-ctl = "0.5.0" [features] builder = [] -jemalloc-allocator = ["dep:tikv-jemalloc-ctl"] +jemalloc-allocator = [ "dep:tikv-jemalloc-ctl" ] diff --git a/polkadot/node/malus/Cargo.toml b/polkadot/node/malus/Cargo.toml index 6684bacd6722..a0f9361f0f0a 100644 --- a/polkadot/node/malus/Cargo.toml +++ b/polkadot/node/malus/Cargo.toml @@ -62,4 +62,4 @@ substrate-build-script-utils = { path = "../../../substrate/utils/build-script-u [features] default = [] -fast-runtime = ["polkadot-cli/fast-runtime"] +fast-runtime = [ "polkadot-cli/fast-runtime" ] diff --git a/polkadot/node/overseer/Cargo.toml b/polkadot/node/overseer/Cargo.toml index 17cebbbe14c2..577b12e2620e 100644 --- a/polkadot/node/overseer/Cargo.toml +++ b/polkadot/node/overseer/Cargo.toml @@ -37,6 +37,6 @@ tikv-jemalloc-ctl = "0.5.0" [features] default = [] -expand = ["orchestra/expand"] -dotgraph = ["orchestra/dotgraph"] -jemalloc-allocator = ["dep:tikv-jemalloc-ctl"] +expand = [ "orchestra/expand" ] +dotgraph = [ "orchestra/dotgraph" ] +jemalloc-allocator = [ "dep:tikv-jemalloc-ctl" ] diff --git a/polkadot/node/service/Cargo.toml b/polkadot/node/service/Cargo.toml index e5995acff127..f58f4abca362 100644 --- a/polkadot/node/service/Cargo.toml +++ b/polkadot/node/service/Cargo.toml @@ -151,15 +151,14 @@ serial_test = "2.0.0" tempfile = "3.2" [features] -default = ["db", "full-node"] +default = [ "db", "full-node" ] -db = [ - "service/rocksdb" -] +db = [ "service/rocksdb" ] full-node = [ - "polkadot-node-core-av-store", - "polkadot-node-core-approval-voting", + "kvdb-rocksdb", + "parity-db", + "polkadot-approval-distribution", "polkadot-availability-bitfield-distribution", "polkadot-availability-distribution", "polkadot-availability-recovery", @@ -168,6 +167,8 @@ full-node = [ "polkadot-gossip-support", "polkadot-network-bridge", "polkadot-node-collation-generation", + "polkadot-node-core-approval-voting", + "polkadot-node-core-av-store", "polkadot-node-core-backing", "polkadot-node-core-bitfield-signing", "polkadot-node-core-candidate-validation", @@ -176,13 +177,10 @@ full-node = [ "polkadot-node-core-dispute-coordinator", "polkadot-node-core-prospective-parachains", "polkadot-node-core-provisioner", - "polkadot-node-core-runtime-api", - "polkadot-statement-distribution", - "polkadot-approval-distribution", "polkadot-node-core-pvf", "polkadot-node-core-pvf-checker", - "kvdb-rocksdb", - "parity-db", + "polkadot-node-core-runtime-api", + "polkadot-statement-distribution", ] # Configure the native runtimes to use. Polkadot is enabled by default. @@ -194,33 +192,34 @@ westend-native = [ "westend-runtime", "westend-runtime-constants" ] rococo-native = [ "rococo-runtime", "rococo-runtime-constants" ] runtime-benchmarks = [ - "polkadot-runtime?/runtime-benchmarks", "kusama-runtime?/runtime-benchmarks", - "westend-runtime?/runtime-benchmarks", + "polkadot-runtime?/runtime-benchmarks", "rococo-runtime?/runtime-benchmarks", - "service/runtime-benchmarks", + "westend-runtime?/runtime-benchmarks", ] try-runtime = [ - "polkadot-runtime?/try-runtime", "kusama-runtime?/try-runtime", - "westend-runtime?/try-runtime", + "polkadot-runtime?/try-runtime", "rococo-runtime?/try-runtime", + "westend-runtime?/try-runtime", ] fast-runtime = [ - "polkadot-runtime?/fast-runtime", "kusama-runtime?/fast-runtime", - "westend-runtime?/fast-runtime", + "polkadot-runtime?/fast-runtime", "rococo-runtime?/fast-runtime", + "westend-runtime?/fast-runtime", ] -malus = ["full-node"] +malus = [ "full-node" ] runtime-metrics = [ - "rococo-runtime?/runtime-metrics", - "westend-runtime?/runtime-metrics", "kusama-runtime?/runtime-metrics", + "polkadot-runtime-parachains/runtime-metrics", "polkadot-runtime?/runtime-metrics", - "polkadot-runtime-parachains/runtime-metrics" + "rococo-runtime?/runtime-metrics", + "westend-runtime?/runtime-metrics", ] -network-protocol-staging = ["polkadot-node-network-protocol/network-protocol-staging"] +network-protocol-staging = [ + "polkadot-node-network-protocol/network-protocol-staging", +] diff --git a/polkadot/node/test/client/Cargo.toml b/polkadot/node/test/client/Cargo.toml index de3fc81c3d8c..f63dd1429442 100644 --- a/polkadot/node/test/client/Cargo.toml +++ b/polkadot/node/test/client/Cargo.toml @@ -38,4 +38,4 @@ sp-keyring = { path = "../../../../substrate/primitives/keyring" } futures = "0.3.21" [features] -runtime-benchmarks=["polkadot-test-runtime/runtime-benchmarks"] +runtime-benchmarks=[ "polkadot-test-runtime/runtime-benchmarks" ] diff --git a/polkadot/node/test/performance-test/Cargo.toml b/polkadot/node/test/performance-test/Cargo.toml index 0e9e08443d2b..0e3236795fb4 100644 --- a/polkadot/node/test/performance-test/Cargo.toml +++ b/polkadot/node/test/performance-test/Cargo.toml @@ -27,4 +27,4 @@ name = "gen-ref-constants" path = "src/gen_ref_constants.rs" [features] -runtime-benchmarks = ["kusama-runtime/runtime-benchmarks"] +runtime-benchmarks = [ "kusama-runtime/runtime-benchmarks" ] diff --git a/polkadot/node/test/service/Cargo.toml b/polkadot/node/test/service/Cargo.toml index db46824b7ccb..c9cb599d2fa0 100644 --- a/polkadot/node/test/service/Cargo.toml +++ b/polkadot/node/test/service/Cargo.toml @@ -63,8 +63,8 @@ substrate-test-utils = { path = "../../../../substrate/test-utils" } tokio = { version = "1.24.2", features = ["macros"] } [features] -runtime-metrics=["polkadot-test-runtime/runtime-metrics"] -runtime-benchmarks=[ - "polkadot-test-runtime/runtime-benchmarks", +runtime-metrics=[ "polkadot-test-runtime/runtime-metrics" ] +runtime-benchmarks= [ "polkadot-service/runtime-benchmarks", + "polkadot-test-runtime/runtime-benchmarks", ] diff --git a/polkadot/parachain/Cargo.toml b/polkadot/parachain/Cargo.toml index fcd1107499b6..032004229f0a 100644 --- a/polkadot/parachain/Cargo.toml +++ b/polkadot/parachain/Cargo.toml @@ -24,17 +24,17 @@ bounded-collections = { version = "0.1.8", default-features = false, features = serde = { version = "1.0.163", default-features = false, features = ["derive", "alloc"] } [features] -default = ["std"] +default = [ "std" ] wasm-api = [] std = [ "bounded-collections/std", + "frame-support/std", "parity-scale-codec/std", + "polkadot-core-primitives/std", "scale-info/std", "serde/std", - "sp-std/std", - "sp-runtime/std", "sp-core/std", - "polkadot-core-primitives/std", - "frame-support/std", + "sp-runtime/std", + "sp-std/std", ] runtime-benchmarks = [] diff --git a/polkadot/parachain/test-parachains/Cargo.toml b/polkadot/parachain/test-parachains/Cargo.toml index 2d9605b76062..fdc3c7f29246 100644 --- a/polkadot/parachain/test-parachains/Cargo.toml +++ b/polkadot/parachain/test-parachains/Cargo.toml @@ -18,5 +18,5 @@ halt = { package = "test-parachain-halt", path = "halt" } sp-core = { path = "../../../substrate/primitives/core" } [features] -default = ["std"] -std = ["adder/std", "halt/std"] +default = [ "std" ] +std = [ "adder/std", "halt/std" ] diff --git a/polkadot/parachain/test-parachains/adder/Cargo.toml b/polkadot/parachain/test-parachains/adder/Cargo.toml index ebb90482f4b1..ca477e3b6ff1 100644 --- a/polkadot/parachain/test-parachains/adder/Cargo.toml +++ b/polkadot/parachain/test-parachains/adder/Cargo.toml @@ -23,7 +23,4 @@ substrate-wasm-builder = { path = "../../../../substrate/utils/wasm-builder" } [features] default = [ "std" ] -std = [ - "parachain/std", - "sp-std/std", -] +std = [ "parachain/std", "sp-std/std" ] diff --git a/polkadot/parachain/test-parachains/adder/collator/Cargo.toml b/polkadot/parachain/test-parachains/adder/collator/Cargo.toml index 6b4431741c71..b96d27e6ab77 100644 --- a/polkadot/parachain/test-parachains/adder/collator/Cargo.toml +++ b/polkadot/parachain/test-parachains/adder/collator/Cargo.toml @@ -51,7 +51,7 @@ test-parachain-adder-collator = { path = "", features = ["test-utils"] } tokio = { version = "1.24.2", features = ["macros"] } [features] -network-protocol-staging = ["polkadot-cli/network-protocol-staging"] +network-protocol-staging = [ "polkadot-cli/network-protocol-staging" ] # This feature is used to export test code to other crates without putting it in the production build. # This is also used by the `puppet_worker` binary. -test-utils = ["polkadot-node-core-pvf/test-utils"] +test-utils = [ "polkadot-node-core-pvf/test-utils" ] diff --git a/polkadot/parachain/test-parachains/undying/Cargo.toml b/polkadot/parachain/test-parachains/undying/Cargo.toml index 9d1e919ae07c..192e890c44d5 100644 --- a/polkadot/parachain/test-parachains/undying/Cargo.toml +++ b/polkadot/parachain/test-parachains/undying/Cargo.toml @@ -24,7 +24,4 @@ substrate-wasm-builder = { path = "../../../../substrate/utils/wasm-builder" } [features] default = [ "std" ] -std = [ - "parachain/std", - "sp-std/std", -] +std = [ "parachain/std", "sp-std/std" ] diff --git a/polkadot/parachain/test-parachains/undying/collator/Cargo.toml b/polkadot/parachain/test-parachains/undying/collator/Cargo.toml index 04de1ef3d096..dd445910d9c6 100644 --- a/polkadot/parachain/test-parachains/undying/collator/Cargo.toml +++ b/polkadot/parachain/test-parachains/undying/collator/Cargo.toml @@ -53,4 +53,4 @@ tokio = { version = "1.24.2", features = ["macros"] } [features] # This feature is used to export test code to other crates without putting it in the production build. # This is also used by the `puppet_worker` binary. -test-utils = ["polkadot-node-core-pvf/test-utils"] +test-utils = [ "polkadot-node-core-pvf/test-utils" ] diff --git a/polkadot/primitives/Cargo.toml b/polkadot/primitives/Cargo.toml index 2f02eb1bed0c..be05315a2d3f 100644 --- a/polkadot/primitives/Cargo.toml +++ b/polkadot/primitives/Cargo.toml @@ -29,25 +29,25 @@ polkadot-core-primitives = { path = "../core-primitives", default-features = fal polkadot-parachain = { path = "../parachain", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "application-crypto/std", + "bitvec/std", + "inherents/std", "parity-scale-codec/std", - "scale-info/std", + "polkadot-core-primitives/std", + "polkadot-parachain/std", "primitives/std", - "inherents/std", + "runtime_primitives/std", + "scale-info/std", + "serde/std", "sp-api/std", + "sp-arithmetic/std", "sp-authority-discovery/std", "sp-consensus-slots/std", - "sp-keystore", - "sp-std/std", "sp-io/std", + "sp-keystore", "sp-staking/std", - "sp-arithmetic/std", - "runtime_primitives/std", - "serde/std", - "polkadot-parachain/std", - "polkadot-core-primitives/std", - "bitvec/std", + "sp-std/std", ] runtime-benchmarks = [] diff --git a/polkadot/runtime/common/Cargo.toml b/polkadot/runtime/common/Cargo.toml index 4b6aae57d8f7..72b07765e5e1 100644 --- a/polkadot/runtime/common/Cargo.toml +++ b/polkadot/runtime/common/Cargo.toml @@ -63,65 +63,63 @@ libsecp256k1 = "0.7.0" test-helpers = { package = "polkadot-primitives-test-helpers", path = "../../primitives/test-helpers" } [features] -default = ["std"] -experimental = [ - "frame-support/experimental" -] +default = [ "std" ] +experimental = [ "frame-support/experimental" ] no_std = [] std = [ "bitvec/std", - "parity-scale-codec/std", - "scale-info/std", - "log/std", - "rustc-hex/std", - "serde/std", - "primitives/std", - "inherents/std", - "sp-core/std", - "sp-api/std", - "sp-std/std", - "sp-io/std", "frame-support/std", + "frame-system/std", + "inherents/std", + "libsecp256k1/std", + "log/std", "pallet-authorship/std", "pallet-balances/std", - "pallet-session/std", + "pallet-election-provider-multi-phase/std", "pallet-fast-unstake/std", - "pallet-staking/std", + "pallet-session/std", "pallet-staking-reward-fn/std", + "pallet-staking/std", "pallet-timestamp/std", - "pallet-vesting/std", "pallet-transaction-payment/std", "pallet-treasury/std", - "pallet-election-provider-multi-phase/std", + "pallet-vesting/std", + "parity-scale-codec/std", + "primitives/std", + "runtime-parachains/std", + "rustc-hex/std", + "scale-info/std", + "serde/std", "slot-range-helper/std", + "sp-api/std", + "sp-core/std", + "sp-io/std", + "sp-npos-elections/std", "sp-runtime/std", "sp-session/std", "sp-staking/std", - "frame-system/std", - "libsecp256k1/std", - "runtime-parachains/std", + "sp-std/std", "xcm/std", - "sp-npos-elections/std", ] runtime-benchmarks = [ - "libsecp256k1/hmac", - "libsecp256k1/static-context", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "runtime-parachains/runtime-benchmarks", + "libsecp256k1/hmac", + "libsecp256k1/static-context", "pallet-babe/runtime-benchmarks", - "pallet-fast-unstake/runtime-benchmarks" + "pallet-fast-unstake/runtime-benchmarks", + "runtime-parachains/runtime-benchmarks", ] try-runtime = [ - "runtime-parachains/try-runtime", "pallet-authorship/try-runtime", "pallet-balances/try-runtime", + "pallet-fast-unstake/try-runtime", "pallet-session/try-runtime", "pallet-staking/try-runtime", "pallet-timestamp/try-runtime", - "pallet-vesting/try-runtime", "pallet-transaction-payment/try-runtime", "pallet-treasury/try-runtime", - "pallet-fast-unstake/try-runtime", + "pallet-vesting/try-runtime", + "runtime-parachains/try-runtime", ] diff --git a/polkadot/runtime/common/slot_range_helper/Cargo.toml b/polkadot/runtime/common/slot_range_helper/Cargo.toml index 785301939de8..4420ee488ab7 100644 --- a/polkadot/runtime/common/slot_range_helper/Cargo.toml +++ b/polkadot/runtime/common/slot_range_helper/Cargo.toml @@ -13,9 +13,5 @@ sp-std = { package = "sp-std", path = "../../../../substrate/primitives/std", de sp-runtime = { path = "../../../../substrate/primitives/runtime", default-features = false } [features] -default = ["std"] -std = [ - "sp-std/std", - "parity-scale-codec/std", - "sp-runtime/std", -] +default = [ "std" ] +std = [ "parity-scale-codec/std", "sp-runtime/std", "sp-std/std" ] diff --git a/polkadot/runtime/kusama/Cargo.toml b/polkadot/runtime/kusama/Cargo.toml index 688560888175..d04f67eda2bb 100644 --- a/polkadot/runtime/kusama/Cargo.toml +++ b/polkadot/runtime/kusama/Cargo.toml @@ -125,44 +125,40 @@ sp-tracing = { path = "../../../substrate/primitives/tracing", default-features substrate-wasm-builder = { path = "../../../substrate/utils/wasm-builder" } [features] -default = ["std"] +default = [ "std" ] no_std = [] only-staking = [] std = [ "authority-discovery-primitives/std", + "babe-primitives/std", + "beefy-primitives/std", "bitvec/std", - "primitives/std", - "rustc-hex/std", - "parity-scale-codec/std", - "scale-info/std", - "inherents/std", - "sp-arithmetic/std", - "sp-core/std", - "sp-api/std", - "tx-pool-api/std", "block-builder-api/std", - "offchain-primitives/std", - "sp-std/std", - "sp-io/std", - "frame-support/std", + "frame-election-provider-support/std", "frame-executive/std", + "frame-support/std", + "frame-system-rpc-runtime-api/std", + "frame-system/std", + "frame-try-runtime/std", + "inherents/std", + "kusama-runtime-constants/std", + "log/std", + "offchain-primitives/std", "pallet-authority-discovery/std", "pallet-authorship/std", + "pallet-babe/std", "pallet-bags-list/std", "pallet-balances/std", - "pallet-beefy/std", "pallet-beefy-mmr/std", + "pallet-beefy/std", "pallet-bounties/std", "pallet-child-bounties/std", - "pallet-transaction-payment/std", - "pallet-transaction-payment-rpc-runtime-api/std", "pallet-collective/std", "pallet-conviction-voting/std", - "pallet-elections-phragmen/std", + "pallet-democracy/std", "pallet-election-provider-multi-phase/std", + "pallet-elections-phragmen/std", "pallet-fast-unstake/std", - "pallet-democracy/std", - "pallet-nis/std", "pallet-grandpa/std", "pallet-identity/std", "pallet-im-online/std", @@ -171,8 +167,9 @@ std = [ "pallet-message-queue/std", "pallet-mmr/std", "pallet-multisig/std", - "pallet-nomination-pools/std", + "pallet-nis/std", "pallet-nomination-pools-runtime-api/std", + "pallet-nomination-pools/std", "pallet-offences/std", "pallet-preimage/std", "pallet-proxy/std", @@ -182,58 +179,61 @@ std = [ "pallet-scheduler/std", "pallet-session/std", "pallet-society/std", - "pallet-staking/std", "pallet-staking-runtime-api/std", + "pallet-staking/std", "pallet-state-trie-migration/std", "pallet-timestamp/std", "pallet-tips/std", + "pallet-transaction-payment-rpc-runtime-api/std", + "pallet-transaction-payment/std", "pallet-treasury/std", "pallet-utility/std", "pallet-vesting/std", "pallet-whitelist/std", - "pallet-babe/std", "pallet-xcm/std", + "parity-scale-codec/std", + "primitives/std", + "runtime-common/std", + "runtime-parachains/std", + "rustc-hex/std", + "scale-info/std", + "serde/std", + "serde_derive", + "sp-api/std", "sp-application-crypto/std", + "sp-arithmetic/std", + "sp-core/std", + "sp-io/std", "sp-mmr-primitives/std", + "sp-npos-elections/std", "sp-runtime/std", + "sp-session/std", "sp-staking/std", - "frame-system/std", - "frame-system-rpc-runtime-api/std", + "sp-std/std", "sp-version/std", - "serde_derive", - "serde/std", - "log/std", - "babe-primitives/std", - "sp-session/std", - "runtime-common/std", - "runtime-parachains/std", - "frame-try-runtime/std", - "sp-npos-elections/std", - "beefy-primitives/std", - "kusama-runtime-constants/std", - "xcm/std", - "xcm-executor/std", + "tx-pool-api/std", "xcm-builder/std", - "frame-election-provider-support/std", + "xcm-executor/std", + "xcm/std", ] runtime-benchmarks = [ - "runtime-common/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", + "frame-election-provider-support/runtime-benchmarks", "frame-support/runtime-benchmarks", + "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", "pallet-babe/runtime-benchmarks", + "pallet-bags-list/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-bounties/runtime-benchmarks", "pallet-child-bounties/runtime-benchmarks", "pallet-collective/runtime-benchmarks", "pallet-conviction-voting/runtime-benchmarks", "pallet-democracy/runtime-benchmarks", - "pallet-elections-phragmen/runtime-benchmarks", "pallet-election-provider-multi-phase/runtime-benchmarks", "pallet-election-provider-support-benchmarking/runtime-benchmarks", + "pallet-elections-phragmen/runtime-benchmarks", "pallet-fast-unstake/runtime-benchmarks", - "pallet-nis/runtime-benchmarks", "pallet-grandpa/runtime-benchmarks", "pallet-identity/runtime-benchmarks", "pallet-im-online/runtime-benchmarks", @@ -241,52 +241,51 @@ runtime-benchmarks = [ "pallet-membership/runtime-benchmarks", "pallet-message-queue/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", - "pallet-nomination-pools/runtime-benchmarks", + "pallet-nis/runtime-benchmarks", "pallet-nomination-pools-benchmarking/runtime-benchmarks", + "pallet-nomination-pools/runtime-benchmarks", + "pallet-offences-benchmarking/runtime-benchmarks", "pallet-preimage/runtime-benchmarks", "pallet-proxy/runtime-benchmarks", "pallet-ranked-collective/runtime-benchmarks", + "pallet-recovery/runtime-benchmarks", "pallet-referenda/runtime-benchmarks", "pallet-scheduler/runtime-benchmarks", + "pallet-session-benchmarking/runtime-benchmarks", "pallet-society/runtime-benchmarks", - "pallet-recovery/runtime-benchmarks", "pallet-staking/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-tips/runtime-benchmarks", "pallet-treasury/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "pallet-vesting/runtime-benchmarks", - "pallet-offences-benchmarking/runtime-benchmarks", - "pallet-session-benchmarking/runtime-benchmarks", "pallet-whitelist/runtime-benchmarks", + "pallet-xcm-benchmarks/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", - "frame-system-benchmarking/runtime-benchmarks", - "xcm-builder/runtime-benchmarks", - "frame-election-provider-support/runtime-benchmarks", - "pallet-bags-list/runtime-benchmarks", + "runtime-common/runtime-benchmarks", "runtime-parachains/runtime-benchmarks", - "pallet-xcm-benchmarks/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "xcm-builder/runtime-benchmarks", ] try-runtime = [ "frame-executive/try-runtime", - "frame-try-runtime", "frame-system/try-runtime", + "frame-try-runtime", "pallet-authority-discovery/try-runtime", "pallet-authorship/try-runtime", + "pallet-babe/try-runtime", "pallet-bags-list/try-runtime", "pallet-balances/try-runtime", - "pallet-beefy/try-runtime", "pallet-beefy-mmr/try-runtime", + "pallet-beefy/try-runtime", "pallet-bounties/try-runtime", "pallet-child-bounties/try-runtime", - "pallet-transaction-payment/try-runtime", "pallet-collective/try-runtime", "pallet-conviction-voting/try-runtime", - "pallet-elections-phragmen/try-runtime", + "pallet-democracy/try-runtime", "pallet-election-provider-multi-phase/try-runtime", + "pallet-elections-phragmen/try-runtime", "pallet-fast-unstake/try-runtime", - "pallet-democracy/try-runtime", - "pallet-nis/try-runtime", "pallet-grandpa/try-runtime", "pallet-identity/try-runtime", "pallet-im-online/try-runtime", @@ -295,6 +294,7 @@ try-runtime = [ "pallet-message-queue/try-runtime", "pallet-mmr/try-runtime", "pallet-multisig/try-runtime", + "pallet-nis/try-runtime", "pallet-nomination-pools/try-runtime", "pallet-offences/try-runtime", "pallet-preimage/try-runtime", @@ -309,11 +309,11 @@ try-runtime = [ "pallet-state-trie-migration/try-runtime", "pallet-timestamp/try-runtime", "pallet-tips/try-runtime", + "pallet-transaction-payment/try-runtime", "pallet-treasury/try-runtime", "pallet-utility/try-runtime", "pallet-vesting/try-runtime", "pallet-whitelist/try-runtime", - "pallet-babe/try-runtime", "pallet-xcm/try-runtime", "runtime-common/try-runtime", ] @@ -327,11 +327,9 @@ disable-runtime-api = [] # A feature that should be enabled when the runtime should be build for on-chain # deployment. This will disable stuff that shouldn't be part of the on-chain wasm # to make it smaller like logging for example. -on-chain-release-build = [ - "sp-api/disable-logging", -] +on-chain-release-build = [ "sp-api/disable-logging" ] # Set timing constants (e.g. session period) to faster versions to speed up testing. fast-runtime = [] -runtime-metrics = ["runtime-parachains/runtime-metrics", "sp-io/with-tracing"] +runtime-metrics = [ "runtime-parachains/runtime-metrics", "sp-io/with-tracing" ] diff --git a/polkadot/runtime/kusama/constants/Cargo.toml b/polkadot/runtime/kusama/constants/Cargo.toml index 97d47c308fdc..f89fee42742b 100644 --- a/polkadot/runtime/kusama/constants/Cargo.toml +++ b/polkadot/runtime/kusama/constants/Cargo.toml @@ -16,12 +16,12 @@ sp-weights = { path = "../../../../substrate/primitives/weights", default-featur sp-core = { path = "../../../../substrate/primitives/core", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "frame-support/std", "primitives/std", "runtime-common/std", "sp-core/std", "sp-runtime/std", - "sp-weights/std" + "sp-weights/std", ] diff --git a/polkadot/runtime/metrics/Cargo.toml b/polkadot/runtime/metrics/Cargo.toml index e6f2e415f367..de3114084fde 100644 --- a/polkadot/runtime/metrics/Cargo.toml +++ b/polkadot/runtime/metrics/Cargo.toml @@ -15,12 +15,12 @@ frame-benchmarking = { path = "../../../substrate/frame/benchmarking", default-f bs58 = { version = "0.4.0", default-features = false, features = ["alloc"] } [features] -default = ["std"] +default = [ "std" ] std = [ + "bs58/std", + "parity-scale-codec/std", + "primitives/std", "sp-std/std", "sp-tracing/std", - "parity-scale-codec/std", - "primitives/std", - "bs58/std" ] -runtime-metrics = ["sp-tracing/with-tracing", "frame-benchmarking"] +runtime-metrics = [ "frame-benchmarking", "sp-tracing/with-tracing" ] diff --git a/polkadot/runtime/parachains/Cargo.toml b/polkadot/runtime/parachains/Cargo.toml index 963aeb6b75a0..f4f6476368bc 100644 --- a/polkadot/runtime/parachains/Cargo.toml +++ b/polkadot/runtime/parachains/Cargo.toml @@ -63,25 +63,14 @@ assert_matches = "1" serde_json = "1.0.96" [features] -default = ["std"] +default = [ "std" ] no_std = [] std = [ "bitvec/std", - "parity-scale-codec/std", - "rustc-hex/std", - "scale-info/std", - "serde/std", - "primitives/std", - "inherents/std", - "sp-core/std", - "sp-api/std", - "sp-keystore", - "sp-std/std", - "sp-io/std", "frame-support/std", - "sp-runtime/std", - "sp-session/std", - "sp-staking/std", + "frame-system/std", + "inherents/std", + "log/std", "pallet-authority-discovery/std", "pallet-authorship/std", "pallet-babe/std", @@ -91,11 +80,22 @@ std = [ "pallet-staking/std", "pallet-timestamp/std", "pallet-vesting/std", - "frame-system/std", - "xcm/std", - "xcm-executor/std", - "log/std", + "parity-scale-codec/std", "polkadot-runtime-metrics/std", + "primitives/std", + "rustc-hex/std", + "scale-info/std", + "serde/std", + "sp-api/std", + "sp-core/std", + "sp-io/std", + "sp-keystore", + "sp-runtime/std", + "sp-session/std", + "sp-staking/std", + "sp-std/std", + "xcm-executor/std", + "xcm/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", @@ -108,8 +108,8 @@ runtime-benchmarks = [ "pallet-timestamp/runtime-benchmarks", "pallet-vesting/runtime-benchmarks", "primitives/runtime-benchmarks", - "static_assertions", "sp-application-crypto", + "static_assertions", ] try-runtime = [ "frame-support/try-runtime", @@ -123,4 +123,7 @@ try-runtime = [ "pallet-timestamp/try-runtime", "pallet-vesting/try-runtime", ] -runtime-metrics = ["sp-tracing/with-tracing", "polkadot-runtime-metrics/runtime-metrics"] +runtime-metrics = [ + "polkadot-runtime-metrics/runtime-metrics", + "sp-tracing/with-tracing", +] diff --git a/polkadot/runtime/polkadot/Cargo.toml b/polkadot/runtime/polkadot/Cargo.toml index d14f34ade5e7..1d2ce803910e 100644 --- a/polkadot/runtime/polkadot/Cargo.toml +++ b/polkadot/runtime/polkadot/Cargo.toml @@ -117,41 +117,36 @@ sp-tracing = { path = "../../../substrate/primitives/tracing", default-features substrate-wasm-builder = { path = "../../../substrate/utils/wasm-builder" } [features] -default = ["std"] +default = [ "std" ] no_std = [] only-staking = [] std = [ "authority-discovery-primitives/std", + "babe-primitives/std", + "beefy-primitives/std", "bitvec/std", - "primitives/std", - "rustc-hex/std", - "parity-scale-codec/std", - "scale-info/std", - "inherents/std", - "sp-arithmetic/std", - "sp-core/std", - "sp-api/std", - "tx-pool-api/std", "block-builder-api/std", - "offchain-primitives/std", - "sp-arithmetic/std", - "sp-std/std", - "sp-mmr-primitives/std", - "frame-support/std", + "frame-election-provider-support/std", "frame-executive/std", + "frame-support/std", + "frame-system-rpc-runtime-api/std", + "frame-system/std", + "frame-try-runtime/std", + "inherents/std", + "log/std", + "offchain-primitives/std", "pallet-authority-discovery/std", "pallet-authorship/std", + "pallet-babe/std", "pallet-bags-list/std", "pallet-balances/std", "pallet-bounties/std", "pallet-child-bounties/std", - "pallet-conviction-voting/std", - "pallet-transaction-payment/std", - "pallet-transaction-payment-rpc-runtime-api/std", "pallet-collective/std", - "pallet-elections-phragmen/std", - "pallet-election-provider-multi-phase/std", + "pallet-conviction-voting/std", "pallet-democracy/std", + "pallet-election-provider-multi-phase/std", + "pallet-elections-phragmen/std", "pallet-fast-unstake/std", "pallet-grandpa/std", "pallet-identity/std", @@ -160,59 +155,67 @@ std = [ "pallet-membership/std", "pallet-message-queue/std", "pallet-multisig/std", - "pallet-nomination-pools/std", "pallet-nomination-pools-runtime-api/std", + "pallet-nomination-pools/std", "pallet-offences/std", "pallet-preimage/std", "pallet-proxy/std", "pallet-referenda/std", "pallet-scheduler/std", "pallet-session/std", - "pallet-staking/std", "pallet-staking-runtime-api/std", + "pallet-staking/std", "pallet-timestamp/std", - "pallet-treasury/std", "pallet-tips/std", - "pallet-babe/std", + "pallet-transaction-payment-rpc-runtime-api/std", + "pallet-transaction-payment/std", + "pallet-treasury/std", + "pallet-utility/std", "pallet-vesting/std", "pallet-whitelist/std", - "pallet-utility/std", - "sp-runtime/std", - "sp-staking/std", - "frame-system/std", - "frame-system-rpc-runtime-api/std", + "pallet-xcm/std", + "parity-scale-codec/std", "polkadot-runtime-constants/std", - "sp-version/std", - "serde_derive", - "serde/std", - "log/std", - "babe-primitives/std", - "sp-session/std", + "primitives/std", "runtime-common/std", - "frame-try-runtime/std", + "rustc-hex/std", + "scale-info/std", + "serde/std", + "serde_derive", + "sp-api/std", + "sp-arithmetic/std", + "sp-arithmetic/std", + "sp-core/std", + "sp-mmr-primitives/std", "sp-npos-elections/std", - "beefy-primitives/std", - "frame-election-provider-support/std", - "pallet-xcm/std", - "xcm/std", - "xcm-executor/std", + "sp-runtime/std", + "sp-session/std", + "sp-staking/std", + "sp-std/std", + "sp-version/std", + "tx-pool-api/std", "xcm-builder/std", + "xcm-executor/std", + "xcm/std", ] runtime-benchmarks = [ - "runtime-common/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", + "frame-election-provider-support/runtime-benchmarks", "frame-support/runtime-benchmarks", + "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", + "hex-literal", "pallet-babe/runtime-benchmarks", "pallet-bags-list/runtime-benchmarks", "pallet-balances/runtime-benchmarks", + "pallet-bounties/runtime-benchmarks", + "pallet-child-bounties/runtime-benchmarks", "pallet-collective/runtime-benchmarks", "pallet-conviction-voting/runtime-benchmarks", "pallet-democracy/runtime-benchmarks", - "pallet-elections-phragmen/runtime-benchmarks", "pallet-election-provider-multi-phase/runtime-benchmarks", "pallet-election-provider-support-benchmarking/runtime-benchmarks", + "pallet-elections-phragmen/runtime-benchmarks", "pallet-fast-unstake/runtime-benchmarks", "pallet-grandpa/runtime-benchmarks", "pallet-identity/runtime-benchmarks", @@ -221,49 +224,45 @@ runtime-benchmarks = [ "pallet-membership/runtime-benchmarks", "pallet-message-queue/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", - "pallet-nomination-pools/runtime-benchmarks", "pallet-nomination-pools-benchmarking/runtime-benchmarks", + "pallet-nomination-pools/runtime-benchmarks", + "pallet-offences-benchmarking/runtime-benchmarks", "pallet-preimage/runtime-benchmarks", "pallet-proxy/runtime-benchmarks", "pallet-referenda/runtime-benchmarks", "pallet-scheduler/runtime-benchmarks", + "pallet-session-benchmarking/runtime-benchmarks", "pallet-staking/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", - "pallet-treasury/runtime-benchmarks", - "pallet-bounties/runtime-benchmarks", - "pallet-child-bounties/runtime-benchmarks", "pallet-tips/runtime-benchmarks", + "pallet-treasury/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "pallet-vesting/runtime-benchmarks", "pallet-whitelist/runtime-benchmarks", + "pallet-xcm-benchmarks/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", - "pallet-offences-benchmarking/runtime-benchmarks", - "pallet-session-benchmarking/runtime-benchmarks", - "frame-system-benchmarking/runtime-benchmarks", - "hex-literal", - "xcm-builder/runtime-benchmarks", - "frame-election-provider-support/runtime-benchmarks", + "runtime-common/runtime-benchmarks", "runtime-parachains/runtime-benchmarks", - "pallet-xcm-benchmarks/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "xcm-builder/runtime-benchmarks", ] try-runtime = [ "frame-executive/try-runtime", - "frame-try-runtime", "frame-system/try-runtime", - "runtime-common/try-runtime", + "frame-try-runtime", "pallet-authority-discovery/try-runtime", "pallet-authorship/try-runtime", - "pallet-balances/try-runtime", + "pallet-babe/try-runtime", "pallet-bags-list/try-runtime", + "pallet-balances/try-runtime", "pallet-bounties/try-runtime", "pallet-child-bounties/try-runtime", - "pallet-conviction-voting/try-runtime", - "pallet-transaction-payment/try-runtime", "pallet-collective/try-runtime", - "pallet-elections-phragmen/try-runtime", + "pallet-conviction-voting/try-runtime", + "pallet-democracy/try-runtime", "pallet-election-provider-multi-phase/try-runtime", + "pallet-elections-phragmen/try-runtime", "pallet-fast-unstake/try-runtime", - "pallet-democracy/try-runtime", "pallet-grandpa/try-runtime", "pallet-identity/try-runtime", "pallet-im-online/try-runtime", @@ -280,13 +279,14 @@ try-runtime = [ "pallet-session/try-runtime", "pallet-staking/try-runtime", "pallet-timestamp/try-runtime", - "pallet-treasury/try-runtime", "pallet-tips/try-runtime", - "pallet-babe/try-runtime", + "pallet-transaction-payment/try-runtime", + "pallet-treasury/try-runtime", + "pallet-utility/try-runtime", "pallet-vesting/try-runtime", "pallet-whitelist/try-runtime", - "pallet-utility/try-runtime", "pallet-xcm/try-runtime", + "runtime-common/try-runtime", ] # When enabled, the runtime API will not be build. # @@ -298,11 +298,9 @@ disable-runtime-api = [] # A feature that should be enabled when the runtime should be build for on-chain # deployment. This will disable stuff that shouldn't be part of the on-chain wasm # to make it smaller like logging for example. -on-chain-release-build = [ - "sp-api/disable-logging", -] +on-chain-release-build = [ "sp-api/disable-logging" ] # Set timing constants (e.g. session period) to faster versions to speed up testing. fast-runtime = [] -runtime-metrics = ["runtime-parachains/runtime-metrics", "sp-io/with-tracing"] +runtime-metrics = [ "runtime-parachains/runtime-metrics", "sp-io/with-tracing" ] diff --git a/polkadot/runtime/polkadot/constants/Cargo.toml b/polkadot/runtime/polkadot/constants/Cargo.toml index 480b4f543ded..2b7f8ccacebb 100644 --- a/polkadot/runtime/polkadot/constants/Cargo.toml +++ b/polkadot/runtime/polkadot/constants/Cargo.toml @@ -16,12 +16,12 @@ sp-weights = { path = "../../../../substrate/primitives/weights", default-featur sp-core = { path = "../../../../substrate/primitives/core", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "frame-support/std", "primitives/std", "runtime-common/std", "sp-core/std", "sp-runtime/std", - "sp-weights/std" + "sp-weights/std", ] diff --git a/polkadot/runtime/rococo/Cargo.toml b/polkadot/runtime/rococo/Cargo.toml index ce0cdf99167b..ebb7cd9c5ef6 100644 --- a/polkadot/runtime/rococo/Cargo.toml +++ b/polkadot/runtime/rococo/Cargo.toml @@ -107,37 +107,32 @@ tokio = { version = "1.24.2", features = ["macros"] } substrate-wasm-builder = { path = "../../../substrate/utils/wasm-builder" } [features] -default = ["std"] +default = [ "std" ] no_std = [] std = [ "authority-discovery-primitives/std", - "primitives/std", - "parity-scale-codec/std", - "scale-info/std", - "inherents/std", - "sp-core/std", - "sp-api/std", - "tx-pool-api/std", + "babe-primitives/std", + "beefy-primitives/std", "block-builder-api/std", - "offchain-primitives/std", - "sp-std/std", - "sp-io/std", - "frame-support/std", "frame-executive/std", + "frame-support/std", + "frame-system-rpc-runtime-api/std", + "frame-system/std", + "frame-try-runtime/std", + "inherents/std", + "log/std", + "offchain-primitives/std", "pallet-authority-discovery/std", "pallet-authorship/std", + "pallet-babe/std", "pallet-balances/std", - "pallet-beefy/std", "pallet-beefy-mmr/std", + "pallet-beefy/std", "pallet-bounties/std", "pallet-child-bounties/std", - "pallet-state-trie-migration/std", - "pallet-transaction-payment/std", - "pallet-transaction-payment-rpc-runtime-api/std", "pallet-collective/std", - "pallet-elections-phragmen/std", "pallet-democracy/std", - "pallet-nis/std", + "pallet-elections-phragmen/std", "pallet-grandpa/std", "pallet-identity/std", "pallet-im-online/std", @@ -146,6 +141,7 @@ std = [ "pallet-message-queue/std", "pallet-mmr/std", "pallet-multisig/std", + "pallet-nis/std", "pallet-offences/std", "pallet-preimage/std", "pallet-proxy/std", @@ -153,43 +149,46 @@ std = [ "pallet-scheduler/std", "pallet-session/std", "pallet-society/std", - "pallet-sudo/std", "pallet-staking/std", + "pallet-state-trie-migration/std", + "pallet-sudo/std", "pallet-timestamp/std", "pallet-tips/std", + "pallet-transaction-payment-rpc-runtime-api/std", + "pallet-transaction-payment/std", "pallet-treasury/std", "pallet-utility/std", "pallet-vesting/std", - "pallet-babe/std", "pallet-xcm/std", + "parity-scale-codec/std", "polkadot-parachain/std", + "primitives/std", + "rococo-runtime-constants/std", + "runtime-common/std", + "runtime-parachains/std", + "scale-info/std", + "serde/std", + "serde_derive", + "sp-api/std", + "sp-core/std", + "sp-io/std", "sp-mmr-primitives/std", "sp-runtime/std", + "sp-session/std", "sp-staking/std", - "frame-system/std", - "frame-system-rpc-runtime-api/std", + "sp-std/std", "sp-version/std", - "serde_derive", - "serde/std", - "log/std", - "babe-primitives/std", - "sp-session/std", - "runtime-common/std", - "runtime-parachains/std", - "frame-try-runtime/std", - "beefy-primitives/std", - "rococo-runtime-constants/std", - "xcm/std", - "xcm-executor/std", + "tx-pool-api/std", "xcm-builder/std", + "xcm-executor/std", + "xcm/std", ] runtime-benchmarks = [ - "runtime-common/runtime-benchmarks", - "frame-system/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", + "frame-system-benchmarking/runtime-benchmarks", + "frame-system/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", "pallet-babe/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-bounties/runtime-benchmarks", @@ -197,7 +196,6 @@ runtime-benchmarks = [ "pallet-collective/runtime-benchmarks", "pallet-democracy/runtime-benchmarks", "pallet-elections-phragmen/runtime-benchmarks", - "pallet-nis/runtime-benchmarks", "pallet-grandpa/runtime-benchmarks", "pallet-identity/runtime-benchmarks", "pallet-im-online/runtime-benchmarks", @@ -205,11 +203,12 @@ runtime-benchmarks = [ "pallet-membership/runtime-benchmarks", "pallet-message-queue/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", + "pallet-nis/runtime-benchmarks", "pallet-preimage/runtime-benchmarks", "pallet-proxy/runtime-benchmarks", + "pallet-recovery/runtime-benchmarks", "pallet-scheduler/runtime-benchmarks", "pallet-society/runtime-benchmarks", - "pallet-recovery/runtime-benchmarks", "pallet-staking/runtime-benchmarks", "pallet-sudo/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", @@ -217,28 +216,28 @@ runtime-benchmarks = [ "pallet-treasury/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "pallet-vesting/runtime-benchmarks", + "pallet-xcm-benchmarks/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", - "frame-system-benchmarking/runtime-benchmarks", - "xcm-builder/runtime-benchmarks", + "runtime-common/runtime-benchmarks", "runtime-parachains/runtime-benchmarks", - "pallet-xcm-benchmarks/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "xcm-builder/runtime-benchmarks", ] try-runtime = [ "frame-executive/try-runtime", - "frame-try-runtime", "frame-system/try-runtime", + "frame-try-runtime", "pallet-authority-discovery/try-runtime", "pallet-authorship/try-runtime", - "pallet-balances/try-runtime", "pallet-babe/try-runtime", - "pallet-beefy/try-runtime", + "pallet-balances/try-runtime", "pallet-beefy-mmr/try-runtime", + "pallet-beefy/try-runtime", "pallet-bounties/try-runtime", "pallet-child-bounties/try-runtime", - "pallet-transaction-payment/try-runtime", "pallet-collective/try-runtime", - "pallet-elections-phragmen/try-runtime", "pallet-democracy/try-runtime", + "pallet-elections-phragmen/try-runtime", "pallet-grandpa/try-runtime", "pallet-identity/try-runtime", "pallet-im-online/try-runtime", @@ -255,11 +254,12 @@ try-runtime = [ "pallet-scheduler/try-runtime", "pallet-session/try-runtime", "pallet-society/try-runtime", - "pallet-sudo/try-runtime", "pallet-staking/try-runtime", "pallet-state-trie-migration/try-runtime", + "pallet-sudo/try-runtime", "pallet-timestamp/try-runtime", "pallet-tips/try-runtime", + "pallet-transaction-payment/try-runtime", "pallet-treasury/try-runtime", "pallet-utility/try-runtime", "pallet-vesting/try-runtime", @@ -277,4 +277,4 @@ disable-runtime-api = [] # Set timing constants (e.g. session period) to faster versions to speed up testing. fast-runtime = [] -runtime-metrics = ["runtime-parachains/runtime-metrics", "sp-io/with-tracing"] +runtime-metrics = [ "runtime-parachains/runtime-metrics", "sp-io/with-tracing" ] diff --git a/polkadot/runtime/rococo/constants/Cargo.toml b/polkadot/runtime/rococo/constants/Cargo.toml index 46b6562d7e99..174e4e83a5e3 100644 --- a/polkadot/runtime/rococo/constants/Cargo.toml +++ b/polkadot/runtime/rococo/constants/Cargo.toml @@ -16,12 +16,12 @@ sp-weights = { path = "../../../../substrate/primitives/weights", default-featur sp-core = { path = "../../../../substrate/primitives/core", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "frame-support/std", "primitives/std", "runtime-common/std", "sp-core/std", "sp-runtime/std", - "sp-weights/std" + "sp-weights/std", ] diff --git a/polkadot/runtime/test-runtime/Cargo.toml b/polkadot/runtime/test-runtime/Cargo.toml index f3ab79fe36c7..e5d04a0dff38 100644 --- a/polkadot/runtime/test-runtime/Cargo.toml +++ b/polkadot/runtime/test-runtime/Cargo.toml @@ -76,61 +76,64 @@ serde_json = "1.0.96" substrate-wasm-builder = { path = "../../../substrate/utils/wasm-builder" } [features] -default = ["std"] +default = [ "std" ] no_std = [] only-staking = [] -runtime-metrics = ["polkadot-runtime-parachains/runtime-metrics", "sp-io/with-tracing"] +runtime-metrics = [ + "polkadot-runtime-parachains/runtime-metrics", + "sp-io/with-tracing", +] std = [ "authority-discovery-primitives/std", - "pallet-authority-discovery/std", + "babe-primitives/std", + "beefy-primitives/std", "bitvec/std", - "primitives/std", - "rustc-hex/std", - "parity-scale-codec/std", - "scale-info/std", - "inherents/std", - "sp-core/std", - "polkadot-parachain/std", - "pallet-xcm/std", - "xcm-builder/std", - "xcm-executor/std", - "xcm/std", - "sp-api/std", - "tx-pool-api/std", "block-builder-api/std", - "offchain-primitives/std", - "sp-std/std", - "sp-io/std", + "frame-election-provider-support/std", + "frame-executive/std", "frame-support/std", + "frame-system-rpc-runtime-api/std", + "frame-system/std", + "inherents/std", + "log/std", + "offchain-primitives/std", + "pallet-authority-discovery/std", "pallet-authorship/std", + "pallet-babe/std", "pallet-balances/std", - "pallet-transaction-payment/std", - "pallet-transaction-payment-rpc-runtime-api/std", - "frame-executive/std", "pallet-grandpa/std", "pallet-indices/std", "pallet-offences/std", - "sp-runtime/std", - "sp-staking/std", "pallet-session/std", "pallet-staking/std", - "frame-system/std", - "frame-system-rpc-runtime-api/std", - "test-runtime-constants/std", + "pallet-sudo/std", "pallet-timestamp/std", - "sp-version/std", + "pallet-transaction-payment-rpc-runtime-api/std", + "pallet-transaction-payment/std", "pallet-vesting/std", - "serde_derive", + "pallet-xcm/std", + "parity-scale-codec/std", + "polkadot-parachain/std", + "primitives/std", + "runtime-common/std", + "rustc-hex/std", + "scale-info/std", "serde/std", - "pallet-babe/std", - "babe-primitives/std", - "beefy-primitives/std", + "serde_derive", + "sp-api/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", "sp-session/std", - "runtime-common/std", - "log/std", - "frame-election-provider-support/std", - "pallet-sudo/std", + "sp-staking/std", + "sp-std/std", + "sp-version/std", + "test-runtime-constants/std", + "tx-pool-api/std", + "xcm-builder/std", + "xcm-executor/std", + "xcm/std", ] runtime-benchmarks = [ diff --git a/polkadot/runtime/test-runtime/constants/Cargo.toml b/polkadot/runtime/test-runtime/constants/Cargo.toml index 39689747d7fc..30b2a09a9493 100644 --- a/polkadot/runtime/test-runtime/constants/Cargo.toml +++ b/polkadot/runtime/test-runtime/constants/Cargo.toml @@ -17,12 +17,12 @@ sp-weights = { path = "../../../../substrate/primitives/weights", default-featur sp-core = { path = "../../../../substrate/primitives/core", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ + "frame-support/std", + "primitives/std", + "runtime-common/std", "sp-core/std", "sp-runtime/std", "sp-weights/std", - "runtime-common/std", - "primitives/std", - "frame-support/std", ] diff --git a/polkadot/runtime/westend/Cargo.toml b/polkadot/runtime/westend/Cargo.toml index 1ae3b19857c9..40664e33a3ad 100644 --- a/polkadot/runtime/westend/Cargo.toml +++ b/polkadot/runtime/westend/Cargo.toml @@ -117,38 +117,36 @@ sp-tracing = { path = "../../../substrate/primitives/tracing", default-features substrate-wasm-builder = { path = "../../../substrate/utils/wasm-builder" } [features] -default = ["std"] +default = [ "std" ] no_std = [] only-staking = [] std = [ "authority-discovery-primitives/std", + "babe-primitives/std", + "beefy-primitives/std", "bitvec/std", - "primitives/std", - "rustc-hex/std", - "parity-scale-codec/std", - "scale-info/std", - "inherents/std", - "sp-core/std", - "polkadot-parachain/std", - "sp-api/std", - "tx-pool-api/std", "block-builder-api/std", - "offchain-primitives/std", - "sp-std/std", - "sp-io/std", + "frame-election-provider-support/std", + "frame-executive/std", "frame-support/std", + "frame-system-rpc-runtime-api/std", + "frame-system/std", + "frame-try-runtime/std", + "inherents/std", + "log/std", + "offchain-primitives/std", "pallet-authority-discovery/std", "pallet-authorship/std", + "pallet-babe/std", + "pallet-bags-list/std", "pallet-balances/std", - "pallet-beefy/std", "pallet-beefy-mmr/std", - "pallet-transaction-payment/std", - "pallet-transaction-payment-rpc-runtime-api/std", + "pallet-beefy/std", "pallet-collective/std", - "pallet-elections-phragmen/std", + "pallet-democracy/std", "pallet-election-provider-multi-phase/std", + "pallet-elections-phragmen/std", "pallet-fast-unstake/std", - "pallet-democracy/std", "pallet-grandpa/std", "pallet-identity/std", "pallet-im-online/std", @@ -156,10 +154,9 @@ std = [ "pallet-membership/std", "pallet-message-queue/std", "pallet-mmr/std", - "beefy-primitives/std", "pallet-multisig/std", - "pallet-nomination-pools/std", "pallet-nomination-pools-runtime-api/std", + "pallet-nomination-pools/std", "pallet-offences/std", "pallet-preimage/std", "pallet-proxy/std", @@ -167,53 +164,58 @@ std = [ "pallet-scheduler/std", "pallet-session/std", "pallet-society/std", - "pallet-staking/std", "pallet-staking-runtime-api/std", + "pallet-staking/std", "pallet-state-trie-migration/std", "pallet-sudo/std", "pallet-timestamp/std", + "pallet-transaction-payment-rpc-runtime-api/std", + "pallet-transaction-payment/std", "pallet-treasury/std", "pallet-utility/std", "pallet-vesting/std", "pallet-xcm/std", - "pallet-babe/std", - "pallet-bags-list/std", - "frame-executive/std", + "parity-scale-codec/std", + "polkadot-parachain/std", + "primitives/std", + "runtime-common/std", + "runtime-parachains/std", + "rustc-hex/std", + "scale-info/std", + "serde/std", + "serde_derive", + "sp-api/std", "sp-application-crypto/std", + "sp-core/std", + "sp-io/std", "sp-mmr-primitives/std", + "sp-npos-elections/std", "sp-runtime/std", + "sp-session/std", "sp-staking/std", - "frame-system/std", - "frame-system-rpc-runtime-api/std", - "westend-runtime-constants/std", + "sp-std/std", "sp-version/std", - "serde_derive", - "serde/std", - "log/std", - "babe-primitives/std", - "sp-session/std", - "runtime-common/std", - "runtime-parachains/std", - "frame-try-runtime/std", - "sp-npos-elections/std", - "xcm/std", - "xcm-executor/std", + "tx-pool-api/std", + "westend-runtime-constants/std", "xcm-builder/std", - "frame-election-provider-support/std", + "xcm-executor/std", + "xcm/std", ] runtime-benchmarks = [ - "runtime-common/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", + "frame-election-provider-support/runtime-benchmarks", "frame-support/runtime-benchmarks", + "frame-system-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", + "hex-literal", "pallet-babe/runtime-benchmarks", + "pallet-bags-list/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-collective/runtime-benchmarks", "pallet-democracy/runtime-benchmarks", - "pallet-elections-phragmen/runtime-benchmarks", "pallet-election-provider-multi-phase/runtime-benchmarks", "pallet-election-provider-support-benchmarking/runtime-benchmarks", + "pallet-elections-phragmen/runtime-benchmarks", "pallet-fast-unstake/runtime-benchmarks", "pallet-grandpa/runtime-benchmarks", "pallet-identity/runtime-benchmarks", @@ -223,10 +225,12 @@ runtime-benchmarks = [ "pallet-message-queue/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", "pallet-nomination-pools-benchmarking/runtime-benchmarks", + "pallet-offences-benchmarking/runtime-benchmarks", "pallet-preimage/runtime-benchmarks", "pallet-proxy/runtime-benchmarks", "pallet-recovery/runtime-benchmarks", "pallet-scheduler/runtime-benchmarks", + "pallet-session-benchmarking/runtime-benchmarks", "pallet-society/runtime-benchmarks", "pallet-staking/runtime-benchmarks", "pallet-sudo/runtime-benchmarks", @@ -234,33 +238,29 @@ runtime-benchmarks = [ "pallet-treasury/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "pallet-vesting/runtime-benchmarks", - "pallet-offences-benchmarking/runtime-benchmarks", - "pallet-session-benchmarking/runtime-benchmarks", - "pallet-xcm/runtime-benchmarks", - "frame-system-benchmarking/runtime-benchmarks", - "hex-literal", - "xcm-builder/runtime-benchmarks", "pallet-xcm-benchmarks/runtime-benchmarks", - "frame-election-provider-support/runtime-benchmarks", - "pallet-bags-list/runtime-benchmarks", + "pallet-xcm/runtime-benchmarks", + "runtime-common/runtime-benchmarks", "runtime-parachains/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "xcm-builder/runtime-benchmarks", ] try-runtime = [ "frame-executive/try-runtime", "frame-system/try-runtime", "frame-try-runtime", - "runtime-common/try-runtime", "pallet-authority-discovery/try-runtime", "pallet-authorship/try-runtime", + "pallet-babe/try-runtime", + "pallet-bags-list/try-runtime", "pallet-balances/try-runtime", - "pallet-beefy/try-runtime", "pallet-beefy-mmr/try-runtime", - "pallet-transaction-payment/try-runtime", + "pallet-beefy/try-runtime", "pallet-collective/try-runtime", - "pallet-elections-phragmen/try-runtime", + "pallet-democracy/try-runtime", "pallet-election-provider-multi-phase/try-runtime", + "pallet-elections-phragmen/try-runtime", "pallet-fast-unstake/try-runtime", - "pallet-democracy/try-runtime", "pallet-grandpa/try-runtime", "pallet-identity/try-runtime", "pallet-im-online/try-runtime", @@ -281,12 +281,12 @@ try-runtime = [ "pallet-state-trie-migration/try-runtime", "pallet-sudo/try-runtime", "pallet-timestamp/try-runtime", + "pallet-transaction-payment/try-runtime", "pallet-treasury/try-runtime", "pallet-utility/try-runtime", "pallet-vesting/try-runtime", "pallet-xcm/try-runtime", - "pallet-babe/try-runtime", - "pallet-bags-list/try-runtime", + "runtime-common/try-runtime", ] # When enabled, the runtime API will not be build. # @@ -298,4 +298,4 @@ disable-runtime-api = [] # Set timing constants (e.g. session period) to faster versions to speed up testing. fast-runtime = [] -runtime-metrics = ["runtime-parachains/runtime-metrics", "sp-io/with-tracing"] +runtime-metrics = [ "runtime-parachains/runtime-metrics", "sp-io/with-tracing" ] diff --git a/polkadot/runtime/westend/constants/Cargo.toml b/polkadot/runtime/westend/constants/Cargo.toml index 0da0e2c5a394..e792a56a5461 100644 --- a/polkadot/runtime/westend/constants/Cargo.toml +++ b/polkadot/runtime/westend/constants/Cargo.toml @@ -16,12 +16,12 @@ sp-weights = { path = "../../../../substrate/primitives/weights", default-featur sp-core = { path = "../../../../substrate/primitives/core", default-features = false } [features] -default = ["std"] +default = [ "std" ] std = [ "frame-support/std", "primitives/std", "runtime-common/std", "sp-core/std", "sp-runtime/std", - "sp-weights/std" + "sp-weights/std", ] diff --git a/polkadot/xcm/Cargo.toml b/polkadot/xcm/Cargo.toml index fd8699fd1dd2..d33b1bf5de12 100644 --- a/polkadot/xcm/Cargo.toml +++ b/polkadot/xcm/Cargo.toml @@ -23,7 +23,7 @@ hex = "0.4.3" hex-literal = "0.4.1" [features] -default = ["std"] +default = [ "std" ] wasm-api = [] std = [ "bounded-collections/std", diff --git a/polkadot/xcm/pallet-xcm-benchmarks/Cargo.toml b/polkadot/xcm/pallet-xcm-benchmarks/Cargo.toml index 9d089db63ffd..f6f993b7d916 100644 --- a/polkadot/xcm/pallet-xcm-benchmarks/Cargo.toml +++ b/polkadot/xcm/pallet-xcm-benchmarks/Cargo.toml @@ -35,7 +35,7 @@ polkadot-runtime-common = { path = "../../runtime/common" } polkadot-primitives = { path = "../../primitives" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking/std", @@ -45,13 +45,13 @@ std = [ "sp-runtime/std", "sp-std/std", "xcm-builder/std", - "xcm-executor/std" + "xcm-executor/std", ] runtime-benchmarks = [ - "xcm-builder/runtime-benchmarks", - "xcm-executor/runtime-benchmarks", - "pallet-xcm/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-xcm/runtime-benchmarks", + "xcm-builder/runtime-benchmarks", + "xcm-executor/runtime-benchmarks", ] diff --git a/polkadot/xcm/pallet-xcm/Cargo.toml b/polkadot/xcm/pallet-xcm/Cargo.toml index 08decae3d485..eefc3c2f5491 100644 --- a/polkadot/xcm/pallet-xcm/Cargo.toml +++ b/polkadot/xcm/pallet-xcm/Cargo.toml @@ -31,25 +31,23 @@ polkadot-parachain = { path = "../../parachain" } xcm-builder = { path = "../xcm-builder" } [features] -default = ["std"] +default = [ "std" ] # Enable `VersionedRuntimeUpgrade` for the migrations that is currently still experimental. -experimental = [ - "frame-support/experimental" -] +experimental = [ "frame-support/experimental" ] std = [ "bounded-collections/std", "codec/std", + "frame-benchmarking?/std", + "frame-support/std", + "frame-system/std", "scale-info/std", "serde", - "sp-std/std", "sp-core/std", "sp-io/std", "sp-runtime/std", - "frame-benchmarking?/std", - "frame-support/std", - "frame-system/std", - "xcm/std", + "sp-std/std", "xcm-executor/std", + "xcm/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", @@ -57,4 +55,4 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "xcm-builder/runtime-benchmarks", ] -try-runtime = ["frame-support/try-runtime"] +try-runtime = [ "frame-support/try-runtime" ] diff --git a/polkadot/xcm/xcm-builder/Cargo.toml b/polkadot/xcm/xcm-builder/Cargo.toml index 79732f69a328..336162dce567 100644 --- a/polkadot/xcm/xcm-builder/Cargo.toml +++ b/polkadot/xcm/xcm-builder/Cargo.toml @@ -37,26 +37,26 @@ assert_matches = "1.5.0" polkadot-test-runtime = { path = "../../runtime/test-runtime" } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "xcm-executor/runtime-benchmarks", "pallet-assets/runtime-benchmarks", + "xcm-executor/runtime-benchmarks", ] std = [ + "frame-support/std", + "frame-system/std", "log/std", + "pallet-transaction-payment/std", "parity-scale-codec/std", + "polkadot-parachain/std", "scale-info/std", - "xcm/std", - "xcm-executor/std", - "sp-std/std", "sp-arithmetic/std", "sp-io/std", "sp-runtime/std", + "sp-std/std", "sp-weights/std", - "frame-support/std", - "frame-system/std", - "polkadot-parachain/std", - "pallet-transaction-payment/std", + "xcm-executor/std", + "xcm/std", ] diff --git a/polkadot/xcm/xcm-executor/Cargo.toml b/polkadot/xcm/xcm-executor/Cargo.toml index 106e96f740d5..de0ca1e4689e 100644 --- a/polkadot/xcm/xcm-executor/Cargo.toml +++ b/polkadot/xcm/xcm-executor/Cargo.toml @@ -22,20 +22,18 @@ log = { version = "0.4.17", default-features = false } frame-benchmarking = { path = "../../../substrate/frame/benchmarking", default-features = false, optional = true } [features] -default = ["std"] -runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", -] +default = [ "std" ] +runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks" ] std = [ + "frame-benchmarking/std", + "frame-support/std", + "log/std", "parity-scale-codec/std", - "xcm/std", - "sp-std/std", - "sp-io/std", "sp-arithmetic/std", "sp-core/std", + "sp-io/std", "sp-runtime/std", + "sp-std/std", "sp-weights/std", - "frame-support/std", - "log/std", - "frame-benchmarking/std", + "xcm/std", ] diff --git a/polkadot/xcm/xcm-executor/integration-tests/Cargo.toml b/polkadot/xcm/xcm-executor/integration-tests/Cargo.toml index 1e7ef875dda5..ecd7096c58de 100644 --- a/polkadot/xcm/xcm-executor/integration-tests/Cargo.toml +++ b/polkadot/xcm/xcm-executor/integration-tests/Cargo.toml @@ -25,9 +25,5 @@ xcm-executor = { path = ".." } sp-tracing = { path = "../../../../substrate/primitives/tracing" } [features] -default = ["std"] -std = [ - "xcm/std", - "sp-runtime/std", - "frame-support/std", -] +default = [ "std" ] +std = [ "frame-support/std", "sp-runtime/std", "xcm/std" ] diff --git a/polkadot/xcm/xcm-simulator/example/Cargo.toml b/polkadot/xcm/xcm-simulator/example/Cargo.toml index b41e5156452e..33a5164ee821 100644 --- a/polkadot/xcm/xcm-simulator/example/Cargo.toml +++ b/polkadot/xcm/xcm-simulator/example/Cargo.toml @@ -34,14 +34,14 @@ polkadot-parachain = { path = "../../../parachain" } [features] default = [] runtime-benchmarks = [ - "frame-system/runtime-benchmarks", "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-message-queue/runtime-benchmarks", "pallet-uniques/runtime-benchmarks", "pallet-xcm/runtime-benchmarks", + "polkadot-parachain/runtime-benchmarks", + "polkadot-runtime-parachains/runtime-benchmarks", "xcm-builder/runtime-benchmarks", "xcm-executor/runtime-benchmarks", - "polkadot-runtime-parachains/runtime-benchmarks", - "polkadot-parachain/runtime-benchmarks", ] diff --git a/polkadot/xcm/xcm-simulator/fuzzer/Cargo.toml b/polkadot/xcm/xcm-simulator/fuzzer/Cargo.toml index 3d134edb702b..a8e43d00e98b 100644 --- a/polkadot/xcm/xcm-simulator/fuzzer/Cargo.toml +++ b/polkadot/xcm/xcm-simulator/fuzzer/Cargo.toml @@ -32,10 +32,10 @@ polkadot-parachain = { path = "../../../parachain" } [features] runtime-benchmarks = [ - "pallet-xcm/runtime-benchmarks", - "pallet-message-queue/runtime-benchmarks", - "xcm-builder/runtime-benchmarks", - "frame-support/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "pallet-message-queue/runtime-benchmarks", + "pallet-xcm/runtime-benchmarks", + "xcm-builder/runtime-benchmarks", ] [[bin]]