diff --git a/bin/node-template/node/Cargo.toml b/bin/node-template/node/Cargo.toml index b05fed96bc8a2..6eb5b4df9c536 100644 --- a/bin/node-template/node/Cargo.toml +++ b/bin/node-template/node/Cargo.toml @@ -70,19 +70,19 @@ substrate-build-script-utils = { version = "3.0.0", path = "../../../utils/build default = [] # Dependencies that are only required if runtime benchmarking should be build. runtime-benchmarks = [ - "node-template-runtime/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", "frame-benchmarking-cli/runtime-benchmarks", + "frame-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", + "node-template-runtime/runtime-benchmarks", "sc-service/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] # Enable features that allow the runtime to be tried and debugged. Name might be subject to change # in the near future. try-runtime = [ - "node-template-runtime/try-runtime", - "try-runtime-cli/try-runtime", "frame-system/try-runtime", + "node-template-runtime/try-runtime", "pallet-transaction-payment/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", + "try-runtime-cli/try-runtime", ] diff --git a/bin/node-template/pallets/template/Cargo.toml b/bin/node-template/pallets/template/Cargo.toml index f468374c2ff9f..a501034639285 100644 --- a/bin/node-template/pallets/template/Cargo.toml +++ b/bin/node-template/pallets/template/Cargo.toml @@ -27,7 +27,7 @@ sp-io = { version = "23.0.0", path = "../../../../primitives/io" } sp-runtime = { version = "24.0.0", path = "../../../../primitives/runtime" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", @@ -36,16 +36,16 @@ std = [ "scale-info/std", "sp-core/std", "sp-io/std", - "sp-runtime/std" + "sp-runtime/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/bin/node-template/runtime/Cargo.toml b/bin/node-template/runtime/Cargo.toml index 51e30187c9d63..32cd9de6d6814 100644 --- a/bin/node-template/runtime/Cargo.toml +++ b/bin/node-template/runtime/Cargo.toml @@ -54,18 +54,17 @@ pallet-template = { version = "4.0.0-dev", default-features = false, path = "../ substrate-wasm-builder = { version = "5.0.0-dev", path = "../../../utils/wasm-builder", optional = true } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-try-runtime?/std", - "frame-system-benchmarking?/std", - "frame-benchmarking?/std", "codec/std", - "scale-info/std", + "frame-benchmarking?/std", "frame-executive/std", "frame-support/std", + "frame-system-benchmarking?/std", "frame-system-rpc-runtime-api/std", "frame-system/std", "frame-try-runtime/std", + "frame-try-runtime?/std", "pallet-aura/std", "pallet-balances/std", "pallet-grandpa/std", @@ -74,6 +73,7 @@ std = [ "pallet-timestamp/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", + "scale-info/std", "sp-api/std", "sp-block-builder/std", "sp-consensus-aura/std", @@ -101,10 +101,10 @@ runtime-benchmarks = [ "sp-runtime/runtime-benchmarks", ] try-runtime = [ - "frame-try-runtime/try-runtime", "frame-executive/try-runtime", - "frame-system/try-runtime", "frame-support/try-runtime", + "frame-system/try-runtime", + "frame-try-runtime/try-runtime", "pallet-aura/try-runtime", "pallet-balances/try-runtime", "pallet-grandpa/try-runtime", @@ -112,6 +112,6 @@ try-runtime = [ "pallet-template/try-runtime", "pallet-timestamp/try-runtime", "pallet-transaction-payment/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] -experimental = ["pallet-aura/experimental"] +experimental = [ "pallet-aura/experimental" ] diff --git a/bin/node/cli/Cargo.toml b/bin/node/cli/Cargo.toml index 37f03fbb0dd7e..fcab4cc6517a9 100644 --- a/bin/node/cli/Cargo.toml +++ b/bin/node/cli/Cargo.toml @@ -147,22 +147,22 @@ pallet-balances = { version = "4.0.0-dev", path = "../../../frame/balances" } sc-storage-monitor = { version = "0.1.0", path = "../../../client/storage-monitor" } [features] -default = ["cli"] +default = [ "cli" ] cli = [ + "clap", + "clap_complete", + "frame-benchmarking-cli", "node-inspect", "sc-cli", - "frame-benchmarking-cli", - "substrate-frame-cli", "sc-service/rocksdb", - "clap", - "clap_complete", "substrate-build-script-utils", + "substrate-frame-cli", "try-runtime-cli", ] runtime-benchmarks = [ - "kitchensink-runtime/runtime-benchmarks", "frame-benchmarking-cli/runtime-benchmarks", "frame-system/runtime-benchmarks", + "kitchensink-runtime/runtime-benchmarks", "pallet-asset-tx-payment/runtime-benchmarks", "pallet-assets/runtime-benchmarks", "pallet-balances/runtime-benchmarks", @@ -170,14 +170,13 @@ runtime-benchmarks = [ "pallet-timestamp/runtime-benchmarks", "sc-client-db/runtime-benchmarks", "sc-service/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] # Enable features that allow the runtime to be tried and debugged. Name might be subject to change # in the near future. try-runtime = [ - "kitchensink-runtime/try-runtime", - "try-runtime-cli/try-runtime", "frame-system/try-runtime", + "kitchensink-runtime/try-runtime", "pallet-asset-conversion-tx-payment/try-runtime", "pallet-asset-tx-payment/try-runtime", "pallet-assets/try-runtime", @@ -185,7 +184,8 @@ try-runtime = [ "pallet-im-online/try-runtime", "pallet-timestamp/try-runtime", "sp-runtime/try-runtime", - "substrate-cli-test-utils/try-runtime" + "substrate-cli-test-utils/try-runtime", + "try-runtime-cli/try-runtime", ] [[bench]] diff --git a/bin/node/primitives/Cargo.toml b/bin/node/primitives/Cargo.toml index ac178c67f7188..586d0bce2dbbc 100644 --- a/bin/node/primitives/Cargo.toml +++ b/bin/node/primitives/Cargo.toml @@ -17,8 +17,5 @@ sp-core = { version = "21.0.0", default-features = false, path = "../../../primi sp-runtime = { version = "24.0.0", default-features = false, path = "../../../primitives/runtime" } [features] -default = ["std"] -std = [ - "sp-core/std", - "sp-runtime/std", -] +default = [ "std" ] +std = [ "sp-core/std", "sp-runtime/std" ] diff --git a/bin/node/runtime/Cargo.toml b/bin/node/runtime/Cargo.toml index de0ec1a5489a8..f8ecf656c65bd 100644 --- a/bin/node/runtime/Cargo.toml +++ b/bin/node/runtime/Cargo.toml @@ -132,118 +132,121 @@ pallet-whitelist = { version = "4.0.0-dev", default-features = false, path = ".. substrate-wasm-builder = { version = "5.0.0-dev", path = "../../../utils/wasm-builder", optional = true } [features] -default = ["std"] -with-tracing = ["frame-executive/with-tracing"] +default = [ "std" ] +with-tracing = [ "frame-executive/with-tracing" ] std = [ - "pallet-whitelist/std", - "pallet-offences-benchmarking?/std", - "pallet-election-provider-support-benchmarking?/std", - "pallet-asset-conversion-tx-payment/std", - "pallet-asset-tx-payment/std", - "frame-system-benchmarking?/std", + "codec/std", + "frame-benchmarking-pallet-pov/std", + "frame-benchmarking/std", "frame-election-provider-support/std", - "sp-authority-discovery/std", + "frame-executive/std", + "frame-support/std", + "frame-system-benchmarking?/std", + "frame-system-rpc-runtime-api/std", + "frame-system/std", + "frame-try-runtime?/std", + "log/std", + "node-primitives/std", + "pallet-alliance/std", + "pallet-asset-conversion-tx-payment/std", "pallet-asset-conversion/std", + "pallet-asset-rate/std", + "pallet-asset-tx-payment/std", "pallet-assets/std", "pallet-authority-discovery/std", "pallet-authorship/std", - "sp-consensus-babe/std", - "sp-consensus-grandpa/std", "pallet-babe/std", "pallet-bags-list/std", "pallet-balances/std", "pallet-bounties/std", - "sp-block-builder/std", - "codec/std", - "scale-info/std", + "pallet-child-bounties/std", "pallet-collective/std", - "pallet-contracts/std", "pallet-contracts-primitives/std", + "pallet-contracts/std", "pallet-conviction-voting/std", "pallet-core-fellowship/std", "pallet-democracy/std", + "pallet-election-provider-multi-phase/std", + "pallet-election-provider-support-benchmarking?/std", "pallet-elections-phragmen/std", "pallet-fast-unstake/std", - "frame-executive/std", - "pallet-nis/std", + "pallet-glutton/std", "pallet-grandpa/std", + "pallet-identity/std", "pallet-im-online/std", "pallet-indices/std", - "sp-inherents/std", + "pallet-insecure-randomness-collective-flip/std", "pallet-lottery/std", "pallet-membership/std", "pallet-message-queue/std", "pallet-mmr/std", "pallet-multisig/std", - "pallet-nomination-pools/std", - "pallet-nomination-pools-runtime-api/std", + "pallet-nft-fractionalization/std", + "pallet-nfts-runtime-api/std", + "pallet-nfts/std", + "pallet-nis/std", "pallet-nomination-pools-benchmarking?/std", - "pallet-identity/std", - "pallet-scheduler/std", - "node-primitives/std", - "sp-offchain/std", + "pallet-nomination-pools-runtime-api/std", + "pallet-nomination-pools/std", + "pallet-offences-benchmarking?/std", "pallet-offences/std", - "pallet-glutton/std", "pallet-preimage/std", "pallet-proxy/std", - "sp-core/std", - "pallet-insecure-randomness-collective-flip/std", - "sp-std/std", - "pallet-session/std", + "pallet-ranked-collective/std", + "pallet-recovery/std", + "pallet-referenda/std", + "pallet-remark/std", + "pallet-root-testing/std", + "pallet-salary/std", + "pallet-scheduler/std", "pallet-session-benchmarking?/std", - "sp-api/std", - "sp-runtime/std", - "sp-staking/std", - "pallet-staking/std", + "pallet-session/std", + "pallet-society/std", "pallet-staking-runtime-api/std", + "pallet-staking/std", "pallet-state-trie-migration/std", "pallet-statement/std", - "pallet-salary/std", - "sp-session/std", "pallet-sudo/std", - "frame-support/std", - "frame-benchmarking/std", - "frame-benchmarking-pallet-pov/std", - "frame-system-rpc-runtime-api/std", - "frame-system/std", - "pallet-election-provider-multi-phase/std", "pallet-timestamp/std", "pallet-tips/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", "pallet-transaction-storage/std", "pallet-treasury/std", - "pallet-asset-rate/std", - "sp-transaction-pool/std", - "sp-statement-store/std", - "pallet-utility/std", - "sp-version/std", - "pallet-society/std", - "pallet-ranked-collective/std", - "pallet-referenda/std", - "pallet-remark/std", - "pallet-root-testing/std", - "pallet-recovery/std", "pallet-uniques/std", - "pallet-nfts/std", - "pallet-nfts-runtime-api/std", - "pallet-nft-fractionalization/std", + "pallet-utility/std", "pallet-vesting/std", - "log/std", - "frame-try-runtime?/std", + "pallet-whitelist/std", + "scale-info/std", + "sp-api/std", + "sp-authority-discovery/std", + "sp-block-builder/std", + "sp-consensus-babe/std", + "sp-consensus-grandpa/std", + "sp-core/std", + "sp-inherents/std", "sp-io/std", - "pallet-child-bounties/std", - "pallet-alliance/std", + "sp-offchain/std", + "sp-runtime/std", + "sp-session/std", + "sp-staking/std", + "sp-statement-store/std", + "sp-std/std", + "sp-transaction-pool/std", + "sp-version/std", "substrate-wasm-builder", ] runtime-benchmarks = [ - "frame-benchmarking/runtime-benchmarks", "frame-benchmarking-pallet-pov/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-alliance/runtime-benchmarks", "pallet-asset-conversion/runtime-benchmarks", + "pallet-asset-rate/runtime-benchmarks", + "pallet-asset-tx-payment/runtime-benchmarks", "pallet-assets/runtime-benchmarks", "pallet-babe/runtime-benchmarks", "pallet-bags-list/runtime-benchmarks", @@ -259,7 +262,7 @@ runtime-benchmarks = [ "pallet-election-provider-support-benchmarking/runtime-benchmarks", "pallet-elections-phragmen/runtime-benchmarks", "pallet-fast-unstake/runtime-benchmarks", - "pallet-nis/runtime-benchmarks", + "pallet-glutton/runtime-benchmarks", "pallet-grandpa/runtime-benchmarks", "pallet-identity/runtime-benchmarks", "pallet-im-online/runtime-benchmarks", @@ -269,17 +272,21 @@ runtime-benchmarks = [ "pallet-message-queue/runtime-benchmarks", "pallet-mmr/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", + "pallet-nft-fractionalization/runtime-benchmarks", + "pallet-nfts/runtime-benchmarks", + "pallet-nis/runtime-benchmarks", "pallet-nomination-pools-benchmarking/runtime-benchmarks", + "pallet-nomination-pools/runtime-benchmarks", "pallet-offences-benchmarking/runtime-benchmarks", - "pallet-glutton/runtime-benchmarks", + "pallet-offences/runtime-benchmarks", "pallet-preimage/runtime-benchmarks", "pallet-proxy/runtime-benchmarks", - "pallet-scheduler/runtime-benchmarks", "pallet-ranked-collective/runtime-benchmarks", - "pallet-referenda/runtime-benchmarks", "pallet-recovery/runtime-benchmarks", + "pallet-referenda/runtime-benchmarks", "pallet-remark/runtime-benchmarks", "pallet-salary/runtime-benchmarks", + "pallet-scheduler/runtime-benchmarks", "pallet-session-benchmarking/runtime-benchmarks", "pallet-society/runtime-benchmarks", "pallet-staking/runtime-benchmarks", @@ -289,28 +296,25 @@ runtime-benchmarks = [ "pallet-tips/runtime-benchmarks", "pallet-transaction-storage/runtime-benchmarks", "pallet-treasury/runtime-benchmarks", - "pallet-asset-rate/runtime-benchmarks", - "pallet-utility/runtime-benchmarks", "pallet-uniques/runtime-benchmarks", - "pallet-nfts/runtime-benchmarks", - "pallet-nft-fractionalization/runtime-benchmarks", + "pallet-utility/runtime-benchmarks", "pallet-vesting/runtime-benchmarks", "pallet-whitelist/runtime-benchmarks", - "frame-system-benchmarking/runtime-benchmarks", - "frame-election-provider-support/runtime-benchmarks", - "pallet-asset-tx-payment/runtime-benchmarks", - "pallet-nomination-pools/runtime-benchmarks", - "pallet-offences/runtime-benchmarks", - "sp-staking/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks", ] try-runtime = [ - "frame-try-runtime/try-runtime", "frame-benchmarking-pallet-pov/try-runtime", + "frame-election-provider-support/try-runtime", "frame-executive/try-runtime", - "frame-system/try-runtime", "frame-support/try-runtime", + "frame-system/try-runtime", + "frame-try-runtime/try-runtime", "pallet-alliance/try-runtime", + "pallet-asset-conversion-tx-payment/try-runtime", "pallet-asset-conversion/try-runtime", + "pallet-asset-rate/try-runtime", + "pallet-asset-tx-payment/try-runtime", "pallet-assets/try-runtime", "pallet-authority-discovery/try-runtime", "pallet-authorship/try-runtime", @@ -327,50 +331,46 @@ try-runtime = [ "pallet-election-provider-multi-phase/try-runtime", "pallet-elections-phragmen/try-runtime", "pallet-fast-unstake/try-runtime", - "pallet-nis/try-runtime", + "pallet-glutton/try-runtime", "pallet-grandpa/try-runtime", + "pallet-identity/try-runtime", "pallet-im-online/try-runtime", "pallet-indices/try-runtime", - "pallet-identity/try-runtime", + "pallet-insecure-randomness-collective-flip/try-runtime", "pallet-lottery/try-runtime", "pallet-membership/try-runtime", "pallet-message-queue/try-runtime", "pallet-mmr/try-runtime", "pallet-multisig/try-runtime", + "pallet-nft-fractionalization/try-runtime", + "pallet-nfts/try-runtime", + "pallet-nis/try-runtime", "pallet-nomination-pools/try-runtime", "pallet-offences/try-runtime", - "pallet-glutton/try-runtime", "pallet-preimage/try-runtime", "pallet-proxy/try-runtime", - "pallet-insecure-randomness-collective-flip/try-runtime", "pallet-ranked-collective/try-runtime", "pallet-recovery/try-runtime", "pallet-referenda/try-runtime", "pallet-remark/try-runtime", "pallet-root-testing/try-runtime", "pallet-salary/try-runtime", + "pallet-scheduler/try-runtime", "pallet-session/try-runtime", + "pallet-society/try-runtime", "pallet-staking/try-runtime", "pallet-state-trie-migration/try-runtime", "pallet-statement/try-runtime", - "pallet-scheduler/try-runtime", - "pallet-society/try-runtime", "pallet-sudo/try-runtime", "pallet-timestamp/try-runtime", "pallet-tips/try-runtime", - "pallet-treasury/try-runtime", - "pallet-asset-rate/try-runtime", - "pallet-utility/try-runtime", "pallet-transaction-payment/try-runtime", - "pallet-asset-conversion-tx-payment/try-runtime", - "pallet-asset-tx-payment/try-runtime", "pallet-transaction-storage/try-runtime", + "pallet-treasury/try-runtime", "pallet-uniques/try-runtime", - "pallet-nfts/try-runtime", - "pallet-nft-fractionalization/try-runtime", + "pallet-utility/try-runtime", "pallet-vesting/try-runtime", "pallet-whitelist/try-runtime", - "frame-election-provider-support/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] -unsafe-debug = ["pallet-contracts/unsafe-debug"] +unsafe-debug = [ "pallet-contracts/unsafe-debug" ] diff --git a/client/cli/Cargo.toml b/client/cli/Cargo.toml index 61750766fa3f8..92ddbe59fc562 100644 --- a/client/cli/Cargo.toml +++ b/client/cli/Cargo.toml @@ -52,5 +52,5 @@ futures-timer = "3.0.1" sp-tracing = { version = "10.0.0", path = "../../primitives/tracing" } [features] -default = ["rocksdb"] -rocksdb = ["sc-client-db/rocksdb"] +default = [ "rocksdb" ] +rocksdb = [ "sc-client-db/rocksdb" ] diff --git a/client/db/Cargo.toml b/client/db/Cargo.toml index 1845158dac112..e351798a026f7 100644 --- a/client/db/Cargo.toml +++ b/client/db/Cargo.toml @@ -51,9 +51,9 @@ default = [] test-helpers = [] runtime-benchmarks = [ "kitchensink-runtime/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] -rocksdb = ["kvdb-rocksdb"] +rocksdb = [ "kvdb-rocksdb" ] [[bench]] name = "state_access" diff --git a/client/executor/Cargo.toml b/client/executor/Cargo.toml index 6a056ce7dfa34..e7252ef3f19cb 100644 --- a/client/executor/Cargo.toml +++ b/client/executor/Cargo.toml @@ -55,7 +55,7 @@ name = "bench" harness = false [features] -default = ["std"] +default = [ "std" ] # This crate does not have `no_std` support, we just require this for tests std = [ "sc-runtime-test/std", @@ -63,13 +63,13 @@ std = [ "sp-core/std", "sp-externalities/std", "sp-io/std", - "sp-runtime/std", "sp-runtime-interface/std", + "sp-runtime/std", "sp-state-machine/std", "sp-tracing/std", "sp-trie/std", "sp-version/std", "sp-wasm-interface/std", - "substrate-test-runtime/std" + "substrate-test-runtime/std", ] wasm-extern-trace = [] diff --git a/client/executor/runtime-test/Cargo.toml b/client/executor/runtime-test/Cargo.toml index abf2fb5c27ad5..628297ade6b74 100644 --- a/client/executor/runtime-test/Cargo.toml +++ b/client/executor/runtime-test/Cargo.toml @@ -23,12 +23,12 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../../primiti substrate-wasm-builder = { version = "5.0.0-dev", path = "../../../utils/wasm-builder", optional = true } [features] -default = ["std"] +default = [ "std" ] std = [ "sp-core/std", "sp-io/std", + "sp-runtime-interface/std", "sp-runtime/std", "sp-std/std", "substrate-wasm-builder", - "sp-runtime-interface/std" ] diff --git a/client/service/Cargo.toml b/client/service/Cargo.toml index 9ad2fcf778f2d..6dcd8b8e4bace 100644 --- a/client/service/Cargo.toml +++ b/client/service/Cargo.toml @@ -13,15 +13,15 @@ readme = "README.md" targets = ["x86_64-unknown-linux-gnu"] [features] -default = ["rocksdb"] +default = [ "rocksdb" ] # The RocksDB feature activates the RocksDB database backend. If it is not activated, and you pass # a path to a database, an error will be produced at runtime. -rocksdb = ["sc-client-db/rocksdb"] +rocksdb = [ "sc-client-db/rocksdb" ] # exposes the client type test-helpers = [] runtime-benchmarks = [ "sc-client-db/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] [dependencies] diff --git a/client/utils/Cargo.toml b/client/utils/Cargo.toml index 40b742f373886..21b082a35fd6e 100644 --- a/client/utils/Cargo.toml +++ b/client/utils/Cargo.toml @@ -20,7 +20,7 @@ prometheus = { version = "0.13.0", default-features = false } sp-arithmetic = { version = "16.0.0", default-features = false, path = "../../primitives/arithmetic" } [features] -default = ["metered"] +default = [ "metered" ] metered = [] [dev-dependencies] diff --git a/docs/STYLE_GUIDE.md b/docs/STYLE_GUIDE.md index 8854f885a4b22..a89dcf52ffc0b 100644 --- a/docs/STYLE_GUIDE.md +++ b/docs/STYLE_GUIDE.md @@ -5,7 +5,7 @@ title: Style Guide for Rust in Substrate Where possible these styles are enforced by settings in `rustfmt.toml` so if you run `cargo fmt` then you will adhere to most of these style guidelines automatically. -# Formatting +# Code Formatting - Indent using tabs. - Lines should be longer than 100 characters long only in exceptional circumstances and certainly @@ -147,3 +147,26 @@ let mut target_path = - how likely is it that invariants could be violated, - are issues stemming from the use of unsafe code caught by existing tests/tooling, - what are the consequences if the problems slip into production. + +# Manifest Formatting + +> **TLDR** +> You can use the CLI tool [Zepter](https://crates.io/crates/zepter) to format the files: `zepter format features` + +Rust `Cargo.toml` files need to respect certain formatting rules. All entries need to be alphabetically sorted. This makes it easier to read them and insert new entries. The exhaustive list of rules is enforced by the CI. The general format looks like this: + +- The feature is written as a single line if it fits within 80 chars: +```toml +[features] +default = [ "std" ] +``` + +- Otherwise the feature is broken down into multiple lines with one entry per line. Each line is padded with one tab and no trailing spaces but a trailing comma. +```toml +[features] +default = [ + "loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong", + # Comments go here as well ;) + "std", +] +``` diff --git a/frame/alliance/Cargo.toml b/frame/alliance/Cargo.toml index d0330ddfd6721..77703a7739d6e 100644 --- a/frame/alliance/Cargo.toml +++ b/frame/alliance/Cargo.toml @@ -39,33 +39,33 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" } pallet-collective = { version = "4.0.0-dev", path = "../collective" } [features] -default = ["std"] +default = [ "std" ] std = [ - "sp-core-hashing?/std", - "pallet-collective?/std", + "codec/std", "frame-benchmarking?/std", + "frame-support/std", + "frame-system/std", "log/std", - "codec/std", + "pallet-balances/std", + "pallet-collective?/std", + "pallet-identity/std", "scale-info/std", - "sp-std/std", + "sp-core-hashing?/std", "sp-core/std", "sp-io/std", "sp-runtime/std", - "frame-support/std", - "frame-system/std", - "pallet-identity/std", - "pallet-balances/std" + "sp-std/std", ] runtime-benchmarks = [ "array-bytes", - "sp-core-hashing", "frame-benchmarking/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", "pallet-collective/runtime-benchmarks", "pallet-identity/runtime-benchmarks", - "pallet-balances/runtime-benchmarks" + "sp-core-hashing", + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", @@ -73,5 +73,5 @@ try-runtime = [ "pallet-balances/try-runtime", "pallet-collective?/try-runtime", "pallet-identity/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/asset-conversion/Cargo.toml b/frame/asset-conversion/Cargo.toml index 77bfab48bbf08..2ad8d9d473e05 100644 --- a/frame/asset-conversion/Cargo.toml +++ b/frame/asset-conversion/Cargo.toml @@ -31,34 +31,34 @@ pallet-assets = { version = "4.0.0-dev", path = "../assets" } primitive-types = { version = "0.12.0", default-features = false, features = ["codec", "scale-info", "num-traits"] } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", - "scale-info/std", - "sp-std/std", - "sp-runtime/std", - "sp-arithmetic/std", "pallet-assets/std", "pallet-balances/std", + "scale-info/std", "sp-api/std", + "sp-arithmetic/std", "sp-core/std", - "sp-io/std" + "sp-io/std", + "sp-runtime/std", + "sp-std/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", "pallet-assets/runtime-benchmarks", - "pallet-balances/runtime-benchmarks" + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-assets/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/asset-rate/Cargo.toml b/frame/asset-rate/Cargo.toml index ebea548d88c91..4a37be8c452b1 100644 --- a/frame/asset-rate/Cargo.toml +++ b/frame/asset-rate/Cargo.toml @@ -30,30 +30,30 @@ sp-io = { version = "23.0.0", path = "../../primitives/io" } sp-core = { version = "21.0.0", default-features = false, path = "../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "scale-info/std", + "sp-core?/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "sp-core?/std", - "pallet-balances/std", - "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-core", "sp-runtime/runtime-benchmarks", - "sp-core", - "pallet-balances/runtime-benchmarks" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", + "pallet-balances/try-runtime", "sp-runtime/try-runtime", - "pallet-balances/try-runtime" ] diff --git a/frame/assets/Cargo.toml b/frame/assets/Cargo.toml index adf78b118a084..5795bbb228625 100644 --- a/frame/assets/Cargo.toml +++ b/frame/assets/Cargo.toml @@ -32,30 +32,30 @@ sp-io = { version = "23.0.0", path = "../../primitives/io" } pallet-balances = { version = "4.0.0-dev", path = "../balances" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", + "frame-benchmarking?/std", + "frame-support/std", + "frame-system/std", "log/std", + "pallet-balances/std", "scale-info/std", "sp-core/std", - "sp-std/std", + "sp-io/std", "sp-runtime/std", - "frame-support/std", - "frame-system/std", - "frame-benchmarking?/std", - "pallet-balances/std", - "sp-io/std" + "sp-std/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", - "frame-system/runtime-benchmarks", "frame-support/runtime-benchmarks", - "pallet-balances/runtime-benchmarks" + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/atomic-swap/Cargo.toml b/frame/atomic-swap/Cargo.toml index bf5018250d8c9..da154d4421f3c 100644 --- a/frame/atomic-swap/Cargo.toml +++ b/frame/atomic-swap/Cargo.toml @@ -26,21 +26,21 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../primitives pallet-balances = { version = "4.0.0-dev", path = "../balances" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "scale-info/std", "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/aura/Cargo.toml b/frame/aura/Cargo.toml index 0c2b812c43d03..67eb99fcd5fbe 100644 --- a/frame/aura/Cargo.toml +++ b/frame/aura/Cargo.toml @@ -29,25 +29,25 @@ sp-core = { version = "21.0.0", default-features = false, path = "../../primitiv sp-io = { version = "23.0.0", path = "../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "log/std", "frame-support/std", "frame-system/std", + "log/std", "pallet-timestamp/std", "scale-info/std", "sp-application-crypto/std", "sp-consensus-aura/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "sp-core/std", - "sp-io/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-timestamp/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] experimental = [] diff --git a/frame/authority-discovery/Cargo.toml b/frame/authority-discovery/Cargo.toml index 4e5025d7c770e..4096e2bbd548d 100644 --- a/frame/authority-discovery/Cargo.toml +++ b/frame/authority-discovery/Cargo.toml @@ -32,7 +32,7 @@ sp-core = { version = "21.0.0", path = "../../primitives/core" } sp-io = { version = "23.0.0", path = "../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", @@ -41,14 +41,14 @@ std = [ "scale-info/std", "sp-application-crypto/std", "sp-authority-discovery/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "sp-core/std", - "sp-io/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-session/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/authorship/Cargo.toml b/frame/authorship/Cargo.toml index 14329367b0905..3dadb1bed3c74 100644 --- a/frame/authorship/Cargo.toml +++ b/frame/authorship/Cargo.toml @@ -28,19 +28,19 @@ sp-core = { version = "21.0.0", path = "../../primitives/core" } sp-io = { version = "23.0.0", path = "../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", "frame-system/std", "scale-info/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "sp-core/std", - "sp-io/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/babe/Cargo.toml b/frame/babe/Cargo.toml index 34cc6cc09baad..75032fd128d10 100644 --- a/frame/babe/Cargo.toml +++ b/frame/babe/Cargo.toml @@ -40,15 +40,19 @@ pallet-staking-reward-curve = { version = "4.0.0-dev", path = "../staking/reward sp-core = { version = "21.0.0", path = "../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", + "frame-election-provider-support/std", "frame-support/std", "frame-system/std", "log/std", "pallet-authorship/std", + "pallet-balances/std", + "pallet-offences/std", "pallet-session/std", + "pallet-staking/std", "pallet-timestamp/std", "scale-info/std", "sp-application-crypto/std", @@ -59,10 +63,6 @@ std = [ "sp-session/std", "sp-staking/std", "sp-std/std", - "frame-election-provider-support/std", - "pallet-balances/std", - "pallet-offences/std", - "pallet-staking/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", @@ -74,11 +74,11 @@ runtime-benchmarks = [ "pallet-staking/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "sp-staking/runtime-benchmarks" + "sp-staking/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", "frame-election-provider-support/try-runtime", + "frame-support/try-runtime", "frame-system/try-runtime", "pallet-authorship/try-runtime", "pallet-balances/try-runtime", @@ -86,5 +86,5 @@ try-runtime = [ "pallet-session/try-runtime", "pallet-staking/try-runtime", "pallet-timestamp/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/bags-list/Cargo.toml b/frame/bags-list/Cargo.toml index 222d64dc229f6..aeb0a6c50b922 100644 --- a/frame/bags-list/Cargo.toml +++ b/frame/bags-list/Cargo.toml @@ -46,44 +46,44 @@ frame-election-provider-support = { version = "4.0.0-dev", path = "../election-p frame-benchmarking = { version = "4.0.0-dev", path = "../benchmarking" } [features] -default = ["std"] +default = [ "std" ] std = [ - "sp-tracing?/std", - "sp-io?/std", - "sp-core?/std", - "pallet-balances?/std", - "frame-benchmarking?/std", - "scale-info/std", "codec/std", - "sp-runtime/std", - "sp-std/std", + "frame-benchmarking?/std", + "frame-election-provider-support/std", "frame-support/std", "frame-system/std", - "frame-election-provider-support/std", "log/std", + "pallet-balances?/std", + "scale-info/std", + "sp-core?/std", + "sp-io?/std", + "sp-runtime/std", + "sp-std/std", + "sp-tracing?/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", - "sp-core", - "sp-io", - "pallet-balances/runtime-benchmarks", - "sp-tracing", "frame-election-provider-support/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "pallet-balances/runtime-benchmarks", + "sp-core", + "sp-io", + "sp-runtime/runtime-benchmarks", + "sp-tracing", ] fuzz = [ + "frame-election-provider-support/fuzz", + "pallet-balances", "sp-core", "sp-io", - "pallet-balances", "sp-tracing", - "frame-election-provider-support/fuzz", ] try-runtime = [ - "frame-support/try-runtime", "frame-election-provider-support/try-runtime", + "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances?/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/balances/Cargo.toml b/frame/balances/Cargo.toml index 549ed3936a9e1..861843b88949a 100644 --- a/frame/balances/Cargo.toml +++ b/frame/balances/Cargo.toml @@ -29,19 +29,19 @@ sp-io = { version = "23.0.0", path = "../../primitives/io" } paste = "1.0.12" [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", + "pallet-transaction-payment/std", "scale-info/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-transaction-payment/std", - "sp-core/std", - "sp-io/std" ] # Enable support for setting the existential deposit to zero. insecure_zero_ed = [] @@ -49,11 +49,11 @@ runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-transaction-payment/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/beefy-mmr/Cargo.toml b/frame/beefy-mmr/Cargo.toml index 97ad80fa7ac6a..af3ecf4d03b9a 100644 --- a/frame/beefy-mmr/Cargo.toml +++ b/frame/beefy-mmr/Cargo.toml @@ -33,7 +33,7 @@ array-bytes = "6.1" sp-staking = { version = "4.0.0-dev", path = "../../primitives/staking" } [features] -default = ["std"] +default = [ "std" ] std = [ "array-bytes", "binary-merkle-tree/std", @@ -46,14 +46,14 @@ std = [ "pallet-session/std", "scale-info/std", "serde", + "sp-api/std", "sp-consensus-beefy/std", "sp-core/std", "sp-io/std", "sp-runtime/std", - "sp-std/std", - "sp-api/std", "sp-staking/std", - "sp-state-machine/std" + "sp-state-machine/std", + "sp-std/std", ] try-runtime = [ "frame-support/try-runtime", @@ -61,5 +61,5 @@ try-runtime = [ "pallet-beefy/try-runtime", "pallet-mmr/try-runtime", "pallet-session/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/beefy/Cargo.toml b/frame/beefy/Cargo.toml index 91cb8e072ca11..7196d8b7d55b1 100644 --- a/frame/beefy/Cargo.toml +++ b/frame/beefy/Cargo.toml @@ -36,33 +36,33 @@ sp-staking = { version = "4.0.0-dev", path = "../../primitives/staking" } sp-state-machine = { version = "0.28.0", default-features = false, path = "../../primitives/state-machine" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "log/std", + "frame-election-provider-support/std", "frame-support/std", "frame-system/std", + "log/std", "pallet-authorship/std", + "pallet-balances/std", + "pallet-offences/std", "pallet-session/std", + "pallet-staking/std", + "pallet-timestamp/std", "scale-info/std", "serde/std", "sp-consensus-beefy/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-session/std", "sp-staking/std", + "sp-state-machine/std", "sp-std/std", - "frame-election-provider-support/std", - "pallet-balances/std", - "pallet-offences/std", - "pallet-staking/std", - "pallet-timestamp/std", - "sp-core/std", - "sp-io/std", - "sp-state-machine/std" ] try-runtime = [ - "frame-support/try-runtime", "frame-election-provider-support/try-runtime", + "frame-support/try-runtime", "frame-system/try-runtime", "pallet-authorship/try-runtime", "pallet-balances/try-runtime", @@ -70,5 +70,5 @@ try-runtime = [ "pallet-session/try-runtime", "pallet-staking/try-runtime", "pallet-timestamp/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/benchmarking/Cargo.toml b/frame/benchmarking/Cargo.toml index 414b1b2301429..6a089c230cfd5 100644 --- a/frame/benchmarking/Cargo.toml +++ b/frame/benchmarking/Cargo.toml @@ -38,9 +38,10 @@ rusty-fork = { version = "0.3.0", default-features = false } sp-keystore = { version = "0.27.0", path = "../../primitives/keystore" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", + "frame-support-procedural/std", "frame-support/std", "frame-system/std", "linregress", @@ -51,15 +52,14 @@ std = [ "sp-application-crypto/std", "sp-core/std", "sp-io/std", + "sp-keystore/std", "sp-runtime-interface/std", "sp-runtime/std", "sp-std/std", "sp-storage/std", - "frame-support-procedural/std", - "sp-keystore/std" ] runtime-benchmarks = [ - "frame-system/runtime-benchmarks", "frame-support/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] diff --git a/frame/benchmarking/pov/Cargo.toml b/frame/benchmarking/pov/Cargo.toml index c0ba8285519a5..2329565893bee 100644 --- a/frame/benchmarking/pov/Cargo.toml +++ b/frame/benchmarking/pov/Cargo.toml @@ -22,7 +22,7 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../../pr sp-std = { version = "8.0.0", default-features = false, path = "../../../primitives/std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking/std", @@ -34,13 +34,13 @@ std = [ "sp-std/std", ] runtime-benchmarks = [ - "frame-system/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/bounties/Cargo.toml b/frame/bounties/Cargo.toml index 950284e26824e..38a7216e8ddf7 100644 --- a/frame/bounties/Cargo.toml +++ b/frame/bounties/Cargo.toml @@ -31,20 +31,20 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../primitives pallet-balances = { version = "4.0.0-dev", path = "../balances" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", + "pallet-balances/std", "pallet-treasury/std", "scale-info/std", "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", @@ -52,12 +52,12 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-treasury/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", "pallet-treasury/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/child-bounties/Cargo.toml b/frame/child-bounties/Cargo.toml index 7613c462eb0c2..2db68263a02d4 100644 --- a/frame/child-bounties/Cargo.toml +++ b/frame/child-bounties/Cargo.toml @@ -32,13 +32,14 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../primitives pallet-balances = { version = "4.0.0-dev", path = "../balances" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", + "pallet-balances/std", "pallet-bounties/std", "pallet-treasury/std", "scale-info/std", @@ -46,17 +47,16 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std" ] runtime-benchmarks = [ "frame-benchmarking", + "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-bounties/runtime-benchmarks", "pallet-treasury/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", @@ -64,5 +64,5 @@ try-runtime = [ "pallet-balances/try-runtime", "pallet-bounties/try-runtime", "pallet-treasury/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/collective/Cargo.toml b/frame/collective/Cargo.toml index 2ca447434f4b0..b80de34ecc2ba 100644 --- a/frame/collective/Cargo.toml +++ b/frame/collective/Cargo.toml @@ -25,7 +25,7 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../primi sp-std = { version = "8.0.0", default-features = false, path = "../../primitives/std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", @@ -47,5 +47,5 @@ runtime-benchmarks = [ try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/contracts/Cargo.toml b/frame/contracts/Cargo.toml index a5c309adc97bc..3ad5367678dde 100644 --- a/frame/contracts/Cargo.toml +++ b/frame/contracts/Cargo.toml @@ -64,45 +64,45 @@ pallet-proxy = { version = "4.0.0-dev", path = "../proxy" } sp-keystore = { version = "0.27.0", path = "../../primitives/keystore" } [features] -default = ["std"] +default = [ "std" ] std = [ - "serde", "codec/std", - "scale-info/std", - "sp-core/std", - "sp-runtime/std", - "sp-io/std", - "sp-std/std", + "environmental/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", - "wasm-instrument/std", - "wasmi/std", - "pallet-contracts-primitives/std", - "pallet-contracts-proc-macro/full", "log/std", - "rand/std", - "environmental/std", "pallet-balances?/std", + "pallet-contracts-primitives/std", + "pallet-contracts-proc-macro/full", "pallet-insecure-randomness-collective-flip/std", "pallet-proxy/std", "pallet-timestamp/std", "pallet-utility/std", + "rand/std", + "scale-info/std", + "serde", "sp-api/std", - "sp-keystore/std" + "sp-core/std", + "sp-io/std", + "sp-keystore/std", + "sp-runtime/std", + "sp-std/std", + "wasm-instrument/std", + "wasmi/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", - "rand", - "rand_pcg", - "wasm-instrument", - "pallet-balances/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", "pallet-proxy/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-utility/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "rand", + "rand_pcg", + "sp-runtime/runtime-benchmarks", + "wasm-instrument", ] try-runtime = [ "frame-support/try-runtime", diff --git a/frame/contracts/primitives/Cargo.toml b/frame/contracts/primitives/Cargo.toml index facfe34e1bc50..c868035c2404d 100644 --- a/frame/contracts/primitives/Cargo.toml +++ b/frame/contracts/primitives/Cargo.toml @@ -23,11 +23,11 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../../pr sp-weights = { version = "20.0.0", default-features = false, path = "../../../primitives/weights" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", + "scale-info/std", "sp-runtime/std", "sp-std/std", - "scale-info/std", - "sp-weights/std" + "sp-weights/std", ] diff --git a/frame/conviction-voting/Cargo.toml b/frame/conviction-voting/Cargo.toml index cdc50340f7731..c5e1e5b990516 100644 --- a/frame/conviction-voting/Cargo.toml +++ b/frame/conviction-voting/Cargo.toml @@ -33,34 +33,34 @@ pallet-scheduler = { version = "4.0.0-dev", path = "../scheduler" } sp-core = { version = "21.0.0", path = "../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", + "pallet-scheduler/std", "scale-info/std", "serde", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "pallet-scheduler/std", - "sp-core/std" ] runtime-benchmarks = [ - "frame-support/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", + "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "pallet-scheduler/runtime-benchmarks" + "pallet-scheduler/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", "pallet-scheduler/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/core-fellowship/Cargo.toml b/frame/core-fellowship/Cargo.toml index 0d2cb7904efd9..981e71c651383 100644 --- a/frame/core-fellowship/Cargo.toml +++ b/frame/core-fellowship/Cargo.toml @@ -26,7 +26,7 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../primi sp-std = { version = "8.0.0", default-features = false, path = "../../primitives/std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", @@ -49,5 +49,5 @@ runtime-benchmarks = [ try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/democracy/Cargo.toml b/frame/democracy/Cargo.toml index f29af914295fe..71e52ed73be00 100644 --- a/frame/democracy/Cargo.toml +++ b/frame/democracy/Cargo.toml @@ -33,30 +33,30 @@ pallet-scheduler = { version = "4.0.0-dev", path = "../scheduler" } pallet-preimage = { version = "4.0.0-dev", path = "../preimage" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", + "pallet-preimage/std", + "pallet-scheduler/std", "scale-info/std", "serde", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "sp-core/std", - "pallet-balances/std", - "pallet-preimage/std", - "pallet-scheduler/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-preimage/runtime-benchmarks", - "pallet-scheduler/runtime-benchmarks" + "pallet-scheduler/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", @@ -64,5 +64,5 @@ try-runtime = [ "pallet-balances/try-runtime", "pallet-preimage/try-runtime", "pallet-scheduler/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/election-provider-multi-phase/Cargo.toml b/frame/election-provider-multi-phase/Cargo.toml index a971897a751b0..0ccde14bc4c6c 100644 --- a/frame/election-provider-multi-phase/Cargo.toml +++ b/frame/election-provider-multi-phase/Cargo.toml @@ -48,46 +48,43 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" } frame-benchmarking = { version = "4.0.0-dev", path = "../benchmarking" } [features] -default = ["std"] +default = [ "std" ] std = [ - "pallet-election-provider-support-benchmarking?/std", "codec/std", - "scale-info/std", - "log/std", - + "frame-benchmarking?/std", + "frame-election-provider-support/std", "frame-support/std", "frame-system/std", - - "sp-io/std", - "sp-std/std", - "sp-core/std", - "sp-runtime/std", - "sp-npos-elections/std", - "sp-arithmetic/std", - "frame-election-provider-support/std", "log/std", - - "frame-benchmarking?/std", + "log/std", + "pallet-balances/std", + "pallet-election-provider-support-benchmarking?/std", "rand/std", + "scale-info/std", + "sp-arithmetic/std", + "sp-core/std", + "sp-io/std", + "sp-npos-elections/std", + "sp-runtime/std", + "sp-std/std", + "sp-tracing/std", "strum/std", - "pallet-balances/std", - "sp-tracing/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-election-provider-support/runtime-benchmarks", - "rand", - "strum", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-election-provider-support-benchmarking?/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "rand", + "sp-runtime/runtime-benchmarks", + "strum", ] try-runtime = [ - "frame-support/try-runtime", "frame-election-provider-support/try-runtime", + "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/election-provider-support/Cargo.toml b/frame/election-provider-support/Cargo.toml index 2aeb06b0442de..975be4ee04044 100644 --- a/frame/election-provider-support/Cargo.toml +++ b/frame/election-provider-support/Cargo.toml @@ -29,27 +29,27 @@ sp-io = { version = "23.0.0", path = "../../primitives/io" } sp-npos-elections = { version = "4.0.0-dev", path = "../../primitives/npos-elections" } [features] -default = ["std"] -fuzz = ["default"] +default = [ "std" ] +fuzz = [ "default" ] std = [ "codec/std", "frame-support/std", "frame-system/std", "scale-info/std", "sp-arithmetic/std", - "sp-npos-elections/std", "sp-core/std", + "sp-io/std", + "sp-npos-elections/std", "sp-runtime/std", "sp-std/std", - "sp-io/std" ] runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/election-provider-support/benchmarking/Cargo.toml b/frame/election-provider-support/benchmarking/Cargo.toml index 2614c61d4352d..28eef6ec6d67a 100644 --- a/frame/election-provider-support/benchmarking/Cargo.toml +++ b/frame/election-provider-support/benchmarking/Cargo.toml @@ -22,7 +22,7 @@ sp-npos-elections = { version = "4.0.0-dev", default-features = false, path = ". sp-runtime = { version = "24.0.0", default-features = false, path = "../../../primitives/runtime" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", @@ -35,5 +35,5 @@ runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-election-provider-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] diff --git a/frame/elections-phragmen/Cargo.toml b/frame/elections-phragmen/Cargo.toml index ac4f2411dd280..b8c2efdc068c0 100644 --- a/frame/elections-phragmen/Cargo.toml +++ b/frame/elections-phragmen/Cargo.toml @@ -35,22 +35,22 @@ sp-tracing = { path = "../../primitives/tracing" } substrate-test-utils = { version = "4.0.0-dev", path = "../../test-utils" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", + "pallet-balances/std", "scale-info/std", "sp-core/std", "sp-io/std", "sp-npos-elections/std", "sp-runtime/std", - "sp-std/std", - "pallet-balances/std", "sp-staking/std", - "sp-tracing/std" + "sp-std/std", + "sp-tracing/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", @@ -58,11 +58,11 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "sp-staking/runtime-benchmarks" + "sp-staking/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/examples/Cargo.toml b/frame/examples/Cargo.toml index af67bef792b6f..e636bc67ea89d 100644 --- a/frame/examples/Cargo.toml +++ b/frame/examples/Cargo.toml @@ -22,18 +22,18 @@ pallet-example-split = { default-features = false, path = "./split" } [features] default = [ "std" ] std = [ - "pallet-example-basic/std", - "pallet-default-config-example/std", - "pallet-example-offchain-worker/std", - "pallet-example-kitchensink/std", - "pallet-dev-mode/std", - "pallet-example-split/std", + "pallet-default-config-example/std", + "pallet-dev-mode/std", + "pallet-example-basic/std", + "pallet-example-kitchensink/std", + "pallet-example-offchain-worker/std", + "pallet-example-split/std", ] try-runtime = [ - "pallet-example-basic/try-runtime", - "pallet-default-config-example/try-runtime", - "pallet-example-offchain-worker/try-runtime", - "pallet-example-kitchensink/try-runtime", - "pallet-dev-mode/try-runtime", - "pallet-example-split/try-runtime", + "pallet-default-config-example/try-runtime", + "pallet-dev-mode/try-runtime", + "pallet-example-basic/try-runtime", + "pallet-example-kitchensink/try-runtime", + "pallet-example-offchain-worker/try-runtime", + "pallet-example-split/try-runtime", ] diff --git a/frame/examples/basic/Cargo.toml b/frame/examples/basic/Cargo.toml index 60bfa1352f482..667afb23c83e1 100644 --- a/frame/examples/basic/Cargo.toml +++ b/frame/examples/basic/Cargo.toml @@ -28,7 +28,7 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../../primiti sp-core = { version = "21.0.0", default-features = false, path = "../../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", @@ -37,21 +37,21 @@ std = [ "log/std", "pallet-balances/std", "scale-info/std", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "sp-core/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/examples/default-config/Cargo.toml b/frame/examples/default-config/Cargo.toml index eac342b736f2e..fbb14730fe7ef 100644 --- a/frame/examples/default-config/Cargo.toml +++ b/frame/examples/default-config/Cargo.toml @@ -24,7 +24,7 @@ sp-runtime = { default-features = false, path = "../../../primitives/runtime" } sp-std = { default-features = false, path = "../../../primitives/std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", @@ -38,5 +38,5 @@ std = [ try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/examples/dev-mode/Cargo.toml b/frame/examples/dev-mode/Cargo.toml index 66b87a5b5245e..1dda112bf0864 100644 --- a/frame/examples/dev-mode/Cargo.toml +++ b/frame/examples/dev-mode/Cargo.toml @@ -27,7 +27,7 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../../primiti sp-core = { version = "21.0.0", default-features = false, path = "../../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", @@ -35,14 +35,14 @@ std = [ "log/std", "pallet-balances/std", "scale-info/std", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "sp-core/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/examples/kitchensink/Cargo.toml b/frame/examples/kitchensink/Cargo.toml index 0537f497b64df..942260115719d 100644 --- a/frame/examples/kitchensink/Cargo.toml +++ b/frame/examples/kitchensink/Cargo.toml @@ -31,34 +31,30 @@ pallet-balances = { version = "4.0.0-dev", default-features = false, path = "../ sp-core = { version = "21.0.0", default-features = false, path = "../../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "log/std", - "scale-info/std", - + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", - + "log/std", + "pallet-balances/std", + "scale-info/std", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - - "frame-benchmarking?/std", - - "pallet-balances/std", - "sp-core/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/examples/offchain-worker/Cargo.toml b/frame/examples/offchain-worker/Cargo.toml index dd3f8e070d583..f3359ee77e11b 100644 --- a/frame/examples/offchain-worker/Cargo.toml +++ b/frame/examples/offchain-worker/Cargo.toml @@ -26,7 +26,7 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../../pr sp-std = { version = "8.0.0", default-features = false, path = "../../../primitives/std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", @@ -36,12 +36,12 @@ std = [ "scale-info/std", "sp-core/std", "sp-io/std", - "sp-keystore/std", - "sp-runtime/std", - "sp-std/std" + "sp-keystore/std", + "sp-runtime/std", + "sp-std/std", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/examples/split/Cargo.toml b/frame/examples/split/Cargo.toml index 3ef5b5a070be4..f64d79855a1a5 100644 --- a/frame/examples/split/Cargo.toml +++ b/frame/examples/split/Cargo.toml @@ -29,27 +29,21 @@ frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional sp-core = { version = "21.0.0", default-features = false, path = "../../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "log/std", - "scale-info/std", - + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", - + "log/std", + "scale-info/std", + "sp-core/std", "sp-io/std", "sp-std/std", - - "frame-benchmarking?/std", - "sp-core/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks" -] -try-runtime = [ - "frame-support/try-runtime", - "frame-system/try-runtime" + "frame-system/runtime-benchmarks", ] +try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime" ] diff --git a/frame/executive/Cargo.toml b/frame/executive/Cargo.toml index 71ec08472d63b..48cbb47fe7d28 100644 --- a/frame/executive/Cargo.toml +++ b/frame/executive/Cargo.toml @@ -37,30 +37,30 @@ sp-io = { version = "23.0.0", path = "../../primitives/io" } sp-version = { version = "22.0.0", path = "../../primitives/version" } [features] -default = ["std"] -with-tracing = ["sp-tracing/with-tracing"] +default = [ "std" ] +with-tracing = [ "sp-tracing/with-tracing" ] std = [ "codec/std", - "log/std", "frame-support/std", "frame-system/std", "frame-try-runtime/std", + "log/std", + "pallet-balances/std", + "pallet-transaction-payment/std", "scale-info/std", "sp-core/std", + "sp-inherents/std", "sp-io/std", "sp-runtime/std", "sp-std/std", "sp-tracing/std", - "pallet-balances/std", - "pallet-transaction-payment/std", - "sp-inherents/std", - "sp-version/std" + "sp-version/std", ] try-runtime = [ "frame-support/try-runtime", - "frame-try-runtime/try-runtime", - "sp-runtime/try-runtime", "frame-system/try-runtime", + "frame-try-runtime/try-runtime", "pallet-balances/try-runtime", - "pallet-transaction-payment/try-runtime" + "pallet-transaction-payment/try-runtime", + "sp-runtime/try-runtime", ] diff --git a/frame/fast-unstake/Cargo.toml b/frame/fast-unstake/Cargo.toml index 8b48537843df1..6e67253f762f7 100644 --- a/frame/fast-unstake/Cargo.toml +++ b/frame/fast-unstake/Cargo.toml @@ -39,46 +39,42 @@ pallet-balances = { path = "../balances" } pallet-timestamp = { path = "../timestamp" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "log/std", - "scale-info/std", - + "frame-benchmarking/std", + "frame-election-provider-support/std", "frame-support/std", "frame-system/std", - - "sp-io/std", - "sp-staking/std", - "sp-runtime/std", - "sp-std/std", - - "frame-election-provider-support/std", - - "frame-benchmarking/std", + "log/std", "pallet-balances/std", "pallet-staking/std", "pallet-timestamp/std", + "scale-info/std", "sp-core/std", - "sp-tracing/std" + "sp-io/std", + "sp-runtime/std", + "sp-staking/std", + "sp-std/std", + "sp-tracing/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "sp-staking/runtime-benchmarks", "frame-election-provider-support/runtime-benchmarks", "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-staking/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", "frame-election-provider-support/try-runtime", + "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", "pallet-staking/try-runtime", "pallet-timestamp/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/glutton/Cargo.toml b/frame/glutton/Cargo.toml index afaa7fdcf973f..65b01e8390b57 100644 --- a/frame/glutton/Cargo.toml +++ b/frame/glutton/Cargo.toml @@ -29,31 +29,31 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../primitives pallet-balances = { version = "4.0.0-dev", path = "../balances" } [features] -default = ["std"] +default = [ "std" ] std = [ "blake2/std", "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "scale-info/std", "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "pallet-balances/runtime-benchmarks" ] diff --git a/frame/grandpa/Cargo.toml b/frame/grandpa/Cargo.toml index 1f0d86cc49cb7..b9f8cc5c2cb89 100644 --- a/frame/grandpa/Cargo.toml +++ b/frame/grandpa/Cargo.toml @@ -42,29 +42,29 @@ pallet-timestamp = { version = "4.0.0-dev", path = "../timestamp" } sp-keyring = { version = "24.0.0", path = "../../primitives/keyring" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", + "frame-election-provider-support/std", "frame-support/std", "frame-system/std", "log/std", "pallet-authorship/std", + "pallet-balances/std", + "pallet-offences/std", "pallet-session/std", + "pallet-staking/std", + "pallet-timestamp/std", "scale-info/std", "sp-application-crypto/std", - "sp-core/std", "sp-consensus-grandpa/std", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-session/std", "sp-staking/std", "sp-std/std", - "frame-election-provider-support/std", - "pallet-balances/std", - "pallet-offences/std", - "pallet-staking/std", - "pallet-timestamp/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", @@ -76,11 +76,11 @@ runtime-benchmarks = [ "pallet-staking/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "sp-staking/runtime-benchmarks" + "sp-staking/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", "frame-election-provider-support/try-runtime", + "frame-support/try-runtime", "frame-system/try-runtime", "pallet-authorship/try-runtime", "pallet-balances/try-runtime", @@ -88,5 +88,5 @@ try-runtime = [ "pallet-session/try-runtime", "pallet-staking/try-runtime", "pallet-timestamp/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/identity/Cargo.toml b/frame/identity/Cargo.toml index 942fba9053294..fef4ed400a55a 100644 --- a/frame/identity/Cargo.toml +++ b/frame/identity/Cargo.toml @@ -28,29 +28,29 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" } sp-core = { version = "21.0.0", path = "../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "scale-info/std", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "sp-core/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/im-online/Cargo.toml b/frame/im-online/Cargo.toml index 076bf91962efd..23e0563a190db 100644 --- a/frame/im-online/Cargo.toml +++ b/frame/im-online/Cargo.toml @@ -31,14 +31,15 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../primitives pallet-session = { version = "4.0.0-dev", path = "../session" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", "pallet-authorship/std", + "pallet-session/std", "scale-info/std", "sp-application-crypto/std", "sp-core/std", @@ -46,19 +47,18 @@ std = [ "sp-runtime/std", "sp-staking/std", "sp-std/std", - "pallet-session/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "sp-staking/runtime-benchmarks" + "sp-staking/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-authorship/try-runtime", "pallet-session/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/indices/Cargo.toml b/frame/indices/Cargo.toml index 52fe97cc7e071..84e41a0cbed20 100644 --- a/frame/indices/Cargo.toml +++ b/frame/indices/Cargo.toml @@ -28,30 +28,30 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../primitives pallet-balances = { version = "4.0.0-dev", path = "../balances" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "scale-info/std", "sp-core/std", "sp-io/std", "sp-keyring", "sp-runtime/std", "sp-std/std", - "pallet-balances/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/insecure-randomness-collective-flip/Cargo.toml b/frame/insecure-randomness-collective-flip/Cargo.toml index d078eafacffc8..6676dac91527d 100644 --- a/frame/insecure-randomness-collective-flip/Cargo.toml +++ b/frame/insecure-randomness-collective-flip/Cargo.toml @@ -26,20 +26,20 @@ sp-core = { version = "21.0.0", path = "../../primitives/core" } sp-io = { version = "23.0.0", path = "../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", "frame-system/std", "safe-mix/std", "scale-info/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "sp-core/std", - "sp-io/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/lottery/Cargo.toml b/frame/lottery/Cargo.toml index a46bf7feff65d..85503edaee45c 100644 --- a/frame/lottery/Cargo.toml +++ b/frame/lottery/Cargo.toml @@ -29,31 +29,31 @@ sp-core = { version = "21.0.0", path = "../../primitives/core" } sp-io = { version = "23.0.0", path = "../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", + "frame-support-test/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "scale-info/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "frame-support-test/std", - "pallet-balances/std", - "sp-core/std", - "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", "frame-support-test/try-runtime", + "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/membership/Cargo.toml b/frame/membership/Cargo.toml index e41a1e0919627..e2674cb64053b 100644 --- a/frame/membership/Cargo.toml +++ b/frame/membership/Cargo.toml @@ -25,7 +25,7 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../primi sp-std = { version = "8.0.0", default-features = false, path = "../../primitives/std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", @@ -47,5 +47,5 @@ runtime-benchmarks = [ try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/merkle-mountain-range/Cargo.toml b/frame/merkle-mountain-range/Cargo.toml index 82a24904cc92d..3496b84350d0f 100644 --- a/frame/merkle-mountain-range/Cargo.toml +++ b/frame/merkle-mountain-range/Cargo.toml @@ -30,13 +30,13 @@ env_logger = "0.9" itertools = "0.10.3" [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "log/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "log/std", "scale-info/std", "sp-core/std", "sp-io/std", @@ -48,10 +48,10 @@ runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/message-queue/Cargo.toml b/frame/message-queue/Cargo.toml index 929b713b7eb2e..4fe2b4636667d 100644 --- a/frame/message-queue/Cargo.toml +++ b/frame/message-queue/Cargo.toml @@ -31,29 +31,29 @@ rand = "0.8.5" rand_distr = "0.4.3" [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", + "frame-benchmarking?/std", + "frame-support/std", + "frame-system/std", "scale-info/std", + "sp-arithmetic/std", "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "sp-arithmetic/std", + "sp-tracing/std", "sp-weights/std", - "frame-benchmarking?/std", - "frame-support/std", - "frame-system/std", - "sp-tracing/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/multisig/Cargo.toml b/frame/multisig/Cargo.toml index 07e13e2238695..7927fea620758 100644 --- a/frame/multisig/Cargo.toml +++ b/frame/multisig/Cargo.toml @@ -29,28 +29,28 @@ log = { version = "0.4.17", default-features = false } pallet-balances = { version = "4.0.0-dev", path = "../balances" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "scale-info/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/nft-fractionalization/Cargo.toml b/frame/nft-fractionalization/Cargo.toml index 8f706a1e00ae7..b75f3262c2d01 100644 --- a/frame/nft-fractionalization/Cargo.toml +++ b/frame/nft-fractionalization/Cargo.toml @@ -31,7 +31,7 @@ sp-io = { version = "23.0.0", path = "../../primitives/io" } sp-std = { version = "8.0.0", path = "../../primitives/std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking/std", @@ -39,22 +39,22 @@ std = [ "frame-system/std", "log/std", "pallet-assets/std", + "pallet-balances/std", "pallet-nfts/std", "scale-info/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "sp-core/std", - "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", "pallet-assets/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "pallet-nfts/runtime-benchmarks" + "pallet-nfts/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", @@ -62,5 +62,5 @@ try-runtime = [ "pallet-assets/try-runtime", "pallet-balances/try-runtime", "pallet-nfts/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/nfts/Cargo.toml b/frame/nfts/Cargo.toml index d378803f5de94..126e4439b5024 100644 --- a/frame/nfts/Cargo.toml +++ b/frame/nfts/Cargo.toml @@ -30,31 +30,31 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" } sp-keystore = { version = "0.27.0", path = "../../primitives/keystore" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", + "pallet-balances/std", "scale-info/std", "sp-core/std", "sp-io/std", + "sp-keystore/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "sp-keystore/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "pallet-balances/runtime-benchmarks" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/nfts/runtime-api/Cargo.toml b/frame/nfts/runtime-api/Cargo.toml index bf5f9f0ec001f..a3e08708ae178 100644 --- a/frame/nfts/runtime-api/Cargo.toml +++ b/frame/nfts/runtime-api/Cargo.toml @@ -19,10 +19,5 @@ pallet-nfts = { version = "4.0.0-dev", default-features = false, path = "../../n sp-api = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/api" } [features] -default = ["std"] -std = [ - "codec/std", - "frame-support/std", - "pallet-nfts/std", - "sp-api/std", -] +default = [ "std" ] +std = [ "codec/std", "frame-support/std", "pallet-nfts/std", "sp-api/std" ] diff --git a/frame/nicks/Cargo.toml b/frame/nicks/Cargo.toml index 450fee2abcce1..129c99d310d97 100644 --- a/frame/nicks/Cargo.toml +++ b/frame/nicks/Cargo.toml @@ -26,21 +26,21 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" } sp-core = { version = "21.0.0", path = "../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "scale-info/std", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "sp-core/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/nis/Cargo.toml b/frame/nis/Cargo.toml index bad1bed8f9042..2b012bbe91a83 100644 --- a/frame/nis/Cargo.toml +++ b/frame/nis/Cargo.toml @@ -28,30 +28,30 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" } sp-io = { version = "23.0.0", path = "../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "scale-info/std", "sp-arithmetic/std", "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/node-authorization/Cargo.toml b/frame/node-authorization/Cargo.toml index 24155841271e5..b801d736498c3 100644 --- a/frame/node-authorization/Cargo.toml +++ b/frame/node-authorization/Cargo.toml @@ -23,7 +23,7 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../primi sp-std = { version = "8.0.0", default-features = false, path = "../../primitives/std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", @@ -38,5 +38,5 @@ std = [ try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/nomination-pools/Cargo.toml b/frame/nomination-pools/Cargo.toml index f3b9a025ecf7c..e0158215e797a 100644 --- a/frame/nomination-pools/Cargo.toml +++ b/frame/nomination-pools/Cargo.toml @@ -35,32 +35,32 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" } sp-tracing = { version = "10.0.0", path = "../../primitives/tracing" } [features] -default = ["std"] -fuzzing = ["pallet-balances", "sp-tracing"] +default = [ "std" ] +fuzzing = [ "pallet-balances", "sp-tracing" ] std = [ "codec/std", - "scale-info/std", "frame-support/std", "frame-system/std", - "sp-runtime/std", - "sp-std/std", - "sp-io/std", - "sp-staking/std", - "sp-core/std", "log/std", "pallet-balances?/std", - "sp-tracing?/std" + "scale-info/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", + "sp-staking/std", + "sp-std/std", + "sp-tracing?/std", ] runtime-benchmarks = [ - "sp-staking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances?/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances?/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/nomination-pools/benchmarking/Cargo.toml b/frame/nomination-pools/benchmarking/Cargo.toml index 38b79d2dabc4c..836f65e849fe0 100644 --- a/frame/nomination-pools/benchmarking/Cargo.toml +++ b/frame/nomination-pools/benchmarking/Cargo.toml @@ -40,7 +40,7 @@ sp-core = { version = "21.0.0", path = "../../../primitives/core" } sp-io = { version = "23.0.0", path = "../../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ "frame-benchmarking/std", @@ -48,28 +48,28 @@ std = [ "frame-support/std", "frame-system/std", "pallet-bags-list/std", - "pallet-staking/std", + "pallet-balances/std", "pallet-nomination-pools/std", - "sp-runtime/std", + "pallet-staking/std", + "pallet-timestamp/std", + "sp-core/std", + "sp-io/std", "sp-runtime-interface/std", + "sp-runtime/std", "sp-staking/std", "sp-std/std", - "pallet-balances/std", - "pallet-timestamp/std", - "sp-core/std", - "sp-io/std" ] runtime-benchmarks = [ - "frame-election-provider-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", - "sp-staking/runtime-benchmarks", + "frame-election-provider-support/runtime-benchmarks", "frame-support/runtime-benchmarks", - "pallet-staking/runtime-benchmarks", - "pallet-nomination-pools/runtime-benchmarks", + "frame-system/runtime-benchmarks", "pallet-bags-list/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "pallet-timestamp/runtime-benchmarks" + "pallet-nomination-pools/runtime-benchmarks", + "pallet-staking/runtime-benchmarks", + "pallet-timestamp/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks", ] diff --git a/frame/nomination-pools/runtime-api/Cargo.toml b/frame/nomination-pools/runtime-api/Cargo.toml index f92a303e9bbe1..eef1d42d43397 100644 --- a/frame/nomination-pools/runtime-api/Cargo.toml +++ b/frame/nomination-pools/runtime-api/Cargo.toml @@ -19,10 +19,5 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../../primiti pallet-nomination-pools = { version = "1.0.0", default-features = false, path = "../" } [features] -default = ["std"] -std = [ - "codec/std", - "sp-api/std", - "sp-std/std", - "pallet-nomination-pools/std", -] +default = [ "std" ] +std = [ "codec/std", "pallet-nomination-pools/std", "sp-api/std", "sp-std/std" ] diff --git a/frame/offences/Cargo.toml b/frame/offences/Cargo.toml index f2542b125d86f..fb92f102940c2 100644 --- a/frame/offences/Cargo.toml +++ b/frame/offences/Cargo.toml @@ -29,7 +29,7 @@ sp-core = { version = "21.0.0", path = "../../primitives/core" } sp-io = { version = "23.0.0", path = "../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", @@ -38,22 +38,22 @@ std = [ "pallet-balances/std", "scale-info/std", "serde", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-staking/std", "sp-std/std", - "sp-core/std", - "sp-io/std" ] runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "sp-staking/runtime-benchmarks" + "sp-staking/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/offences/benchmarking/Cargo.toml b/frame/offences/benchmarking/Cargo.toml index 3483ad743a462..17309478d62ec 100644 --- a/frame/offences/benchmarking/Cargo.toml +++ b/frame/offences/benchmarking/Cargo.toml @@ -38,13 +38,14 @@ sp-core = { version = "21.0.0", path = "../../../primitives/core" } sp-io = { version = "23.0.0", path = "../../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking/std", "frame-election-provider-support/std", "frame-support/std", "frame-system/std", + "log/std", "pallet-babe/std", "pallet-balances/std", "pallet-grandpa/std", @@ -52,18 +53,16 @@ std = [ "pallet-offences/std", "pallet-session/std", "pallet-staking/std", + "pallet-timestamp/std", "scale-info/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-staking/std", "sp-std/std", - "log/std", - "pallet-timestamp/std", - "sp-core/std", - "sp-io/std" ] runtime-benchmarks = [ - "pallet-staking/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-election-provider-support/runtime-benchmarks", "frame-support/runtime-benchmarks", @@ -73,7 +72,8 @@ runtime-benchmarks = [ "pallet-grandpa/runtime-benchmarks", "pallet-im-online/runtime-benchmarks", "pallet-offences/runtime-benchmarks", + "pallet-staking/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "sp-staking/runtime-benchmarks" + "sp-staking/runtime-benchmarks", ] diff --git a/frame/paged-list/Cargo.toml b/frame/paged-list/Cargo.toml index d2b3db0080c33..4f697b6333c8e 100644 --- a/frame/paged-list/Cargo.toml +++ b/frame/paged-list/Cargo.toml @@ -27,7 +27,7 @@ sp-io = { version = "23.0.0", path = "../../primitives/io", default-features = f sp-metadata-ir = { version = "0.1.0", default-features = false, optional = true, path = "../../primitives/metadata-ir" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", @@ -37,19 +37,22 @@ std = [ "scale-info/std", "sp-core/std", "sp-io/std", + "sp-metadata-ir/std", "sp-runtime/std", "sp-std/std", - "sp-metadata-ir/std" ] -runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks"] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] -frame-metadata = [ - "sp-metadata-ir" -] +frame-metadata = [ "sp-metadata-ir" ] diff --git a/frame/preimage/Cargo.toml b/frame/preimage/Cargo.toml index b942823a2d26b..f9ba45cedab2a 100644 --- a/frame/preimage/Cargo.toml +++ b/frame/preimage/Cargo.toml @@ -25,14 +25,14 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" } sp-core = { version = "21.0.0", default-features = false, path = "../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "frame-benchmarking", + "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] std = [ "codec/std", @@ -40,16 +40,16 @@ std = [ "frame-support/std", "frame-system/std", "log/std", + "pallet-balances/std", "scale-info/std", "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/proxy/Cargo.toml b/frame/proxy/Cargo.toml index a32a31ce41ade..734926c4a2f92 100644 --- a/frame/proxy/Cargo.toml +++ b/frame/proxy/Cargo.toml @@ -28,19 +28,19 @@ pallet-utility = { version = "4.0.0-dev", path = "../utility" } sp-core = { version = "21.0.0", path = "../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", + "pallet-utility/std", "scale-info/std", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "pallet-utility/std", - "sp-core/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", @@ -48,12 +48,12 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-utility/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", "pallet-utility/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/ranked-collective/Cargo.toml b/frame/ranked-collective/Cargo.toml index 0a20b4eb97ca1..1152aeea4fa06 100644 --- a/frame/ranked-collective/Cargo.toml +++ b/frame/ranked-collective/Cargo.toml @@ -26,7 +26,7 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../primi sp-std = { version = "8.0.0", default-features = false, path = "../../primitives/std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", @@ -49,5 +49,5 @@ runtime-benchmarks = [ try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/recovery/Cargo.toml b/frame/recovery/Cargo.toml index 14d32866e0101..9e86728bc8976 100644 --- a/frame/recovery/Cargo.toml +++ b/frame/recovery/Cargo.toml @@ -27,30 +27,30 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" } sp-core = { version = "21.0.0", path = "../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ 'frame-benchmarking', + "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", - "pallet-balances/runtime-benchmarks" ] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "scale-info/std", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "sp-core/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/referenda/Cargo.toml b/frame/referenda/Cargo.toml index a52d987806421..abaed893ee54b 100644 --- a/frame/referenda/Cargo.toml +++ b/frame/referenda/Cargo.toml @@ -36,34 +36,34 @@ pallet-scheduler = { version = "4.0.0-dev", path = "../scheduler" } sp-core = { version = "21.0.0", path = "../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", - "sp-runtime/std", - "sp-arithmetic/std", "frame-system/std", + "pallet-balances/std", + "pallet-preimage/std", + "pallet-scheduler/std", "scale-info/std", "serde", + "sp-arithmetic/std", + "sp-core/std", "sp-io/std", "sp-runtime/std", + "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "pallet-preimage/std", - "pallet-scheduler/std", - "sp-core/std" ] runtime-benchmarks = [ "assert_matches", "frame-benchmarking", + "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-preimage/runtime-benchmarks", - "pallet-scheduler/runtime-benchmarks" + "pallet-scheduler/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", @@ -71,5 +71,5 @@ try-runtime = [ "pallet-balances/try-runtime", "pallet-preimage/try-runtime", "pallet-scheduler/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/remark/Cargo.toml b/frame/remark/Cargo.toml index df77770c3a846..47078bddeb5ba 100644 --- a/frame/remark/Cargo.toml +++ b/frame/remark/Cargo.toml @@ -28,16 +28,16 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../primitives sp-core = { version = "21.0.0", default-features = false, path = "../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "scale-info/std", @@ -50,5 +50,5 @@ std = [ try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/root-offences/Cargo.toml b/frame/root-offences/Cargo.toml index 6b7623b9af0e7..e8f38f8aca343 100644 --- a/frame/root-offences/Cargo.toml +++ b/frame/root-offences/Cargo.toml @@ -44,33 +44,32 @@ runtime-benchmarks = [ "pallet-staking/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "sp-staking/runtime-benchmarks" + "sp-staking/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", "frame-election-provider-support/try-runtime", + "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", "pallet-session/try-runtime", "pallet-staking/try-runtime", "pallet-timestamp/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] -default = ["std"] +default = [ "std" ] std = [ "codec/std", + "frame-election-provider-support/std", "frame-support/std", - "frame-system/std", + "pallet-balances/std", "pallet-session/std", "pallet-staking/std", - "scale-info/std", - "sp-runtime/std", - "frame-election-provider-support/std", - "pallet-balances/std", "pallet-timestamp/std", + "scale-info/std", "sp-core/std", "sp-io/std", + "sp-runtime/std", "sp-staking/std", - "sp-std/std" + "sp-std/std", ] diff --git a/frame/root-testing/Cargo.toml b/frame/root-testing/Cargo.toml index e6f32587d4593..b76cb5a059a34 100644 --- a/frame/root-testing/Cargo.toml +++ b/frame/root-testing/Cargo.toml @@ -27,18 +27,16 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../primitives try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", - "frame-system/std", "scale-info/std", - - "sp-runtime/std", "sp-core/std", "sp-io/std", - "sp-std/std" + "sp-runtime/std", + "sp-std/std", ] diff --git a/frame/salary/Cargo.toml b/frame/salary/Cargo.toml index 8fedecf4cec97..330b746fc1e3f 100644 --- a/frame/salary/Cargo.toml +++ b/frame/salary/Cargo.toml @@ -26,7 +26,7 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../primi sp-std = { version = "8.0.0", default-features = false, path = "../../primitives/std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", @@ -49,5 +49,5 @@ runtime-benchmarks = [ try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/scheduler/Cargo.toml b/frame/scheduler/Cargo.toml index 1d583d0892f9c..edc39924319d1 100644 --- a/frame/scheduler/Cargo.toml +++ b/frame/scheduler/Cargo.toml @@ -28,14 +28,14 @@ sp-core = { version = "21.0.0", default-features = false, path = "../../primitiv substrate-test-utils = { version = "4.0.0-dev", path = "../../test-utils" } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "frame-benchmarking", + "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", "pallet-preimage/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] std = [ "codec/std", @@ -43,17 +43,17 @@ std = [ "frame-support/std", "frame-system/std", "log/std", + "pallet-preimage/std", "scale-info/std", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", "sp-weights/std", - "pallet-preimage/std", - "sp-core/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-preimage/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/scored-pool/Cargo.toml b/frame/scored-pool/Cargo.toml index 58dd23d241cf8..6bed5b04aef87 100644 --- a/frame/scored-pool/Cargo.toml +++ b/frame/scored-pool/Cargo.toml @@ -26,21 +26,21 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" } sp-core = { version = "21.0.0", path = "../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "scale-info/std", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "sp-core/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/session/Cargo.toml b/frame/session/Cargo.toml index a2a04e76a9f91..1fc5f4c1ab8c2 100644 --- a/frame/session/Cargo.toml +++ b/frame/session/Cargo.toml @@ -30,8 +30,8 @@ sp-trie = { version = "22.0.0", default-features = false, optional = true, path sp-state-machine = { version = "0.28.0", default-features = false, path = "../../primitives/state-machine" } [features] -default = ["historical", "std"] -historical = ["sp-trie"] +default = [ "historical", "std" ] +historical = [ "sp-trie" ] std = [ "codec/std", "frame-support/std", @@ -44,13 +44,13 @@ std = [ "sp-runtime/std", "sp-session/std", "sp-staking/std", + "sp-state-machine/std", "sp-std/std", "sp-trie/std", - "sp-state-machine/std", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-timestamp/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/session/benchmarking/Cargo.toml b/frame/session/benchmarking/Cargo.toml index 81e4c2ff590b1..5db6821da1fab 100644 --- a/frame/session/benchmarking/Cargo.toml +++ b/frame/session/benchmarking/Cargo.toml @@ -35,31 +35,31 @@ sp-core = { version = "21.0.0", path = "../../../primitives/core" } sp-io = { version = "23.0.0", path = "../../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ "frame-benchmarking/std", + "frame-election-provider-support/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "pallet-session/std", "pallet-staking/std", + "pallet-timestamp/std", "rand/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-session/std", "sp-std/std", - "frame-election-provider-support/std", - "pallet-balances/std", - "pallet-timestamp/std", - "sp-core/std", - "sp-io/std" ] runtime-benchmarks = [ - "pallet-staking/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-election-provider-support/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", + "pallet-staking/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] diff --git a/frame/society/Cargo.toml b/frame/society/Cargo.toml index 38f2ca66bd195..55e5c1e01cb19 100644 --- a/frame/society/Cargo.toml +++ b/frame/society/Cargo.toml @@ -33,38 +33,36 @@ sp-core = { version = "21.0.0", path = "../../primitives/core" } sp-io = { version = "23.0.0", path = "../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] # Enable `VersionedRuntimeUpgrade` for the migrations that is currently still experimental. -experimental = [ - "frame-support/experimental" -] +experimental = [ "frame-support/experimental" ] std = [ "codec/std", "frame-benchmarking?/std", + "frame-support-test/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "rand_chacha/std", "scale-info/std", + "sp-arithmetic/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "sp-io/std", - "frame-support-test/std", - "pallet-balances/std", - "sp-arithmetic/std", - "sp-core/std" ] runtime-benchmarks = [ "frame-benchmarking", - "sp-runtime/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", "frame-support-test/try-runtime", + "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/staking/Cargo.toml b/frame/staking/Cargo.toml index 19a437ce4ccfc..2ad9b44d7b4b2 100644 --- a/frame/staking/Cargo.toml +++ b/frame/staking/Cargo.toml @@ -50,50 +50,50 @@ frame-election-provider-support = { version = "4.0.0-dev", path = "../election-p rand_chacha = { version = "0.2" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", - "serde/std", "codec/std", - "scale-info/std", - "sp-std/std", - "sp-io/std", + "frame-benchmarking?/std", + "frame-election-provider-support/std", "frame-support/std", - "sp-runtime/std", - "sp-staking/std", - "pallet-session/std", "frame-system/std", - "pallet-authorship/std", - "sp-application-crypto/std", "log/std", - "frame-election-provider-support/std", + "pallet-authorship/std", "pallet-bags-list/std", "pallet-balances/std", + "pallet-session/std", "pallet-timestamp/std", + "scale-info/std", + "serde/std", + "sp-application-crypto/std", "sp-core/std", + "sp-io/std", "sp-npos-elections/std", - "sp-tracing/std" + "sp-runtime/std", + "sp-staking/std", + "sp-std/std", + "sp-tracing/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-election-provider-support/runtime-benchmarks", - "rand_chacha", - "sp-staking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-bags-list/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "rand_chacha", + "sp-runtime/runtime-benchmarks", + "sp-staking/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", "frame-election-provider-support/try-runtime", + "frame-support/try-runtime", "frame-system/try-runtime", "pallet-authorship/try-runtime", "pallet-bags-list/try-runtime", "pallet-balances/try-runtime", "pallet-session/try-runtime", "pallet-timestamp/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/staking/reward-fn/Cargo.toml b/frame/staking/reward-fn/Cargo.toml index 3561eeb8a90c2..a80210f7d9f19 100644 --- a/frame/staking/reward-fn/Cargo.toml +++ b/frame/staking/reward-fn/Cargo.toml @@ -18,8 +18,5 @@ log = { version = "0.4.17", default-features = false } sp-arithmetic = { version = "16.0.0", default-features = false, path = "../../../primitives/arithmetic" } [features] -default = ["std"] -std = [ - "log/std", - "sp-arithmetic/std", -] +default = [ "std" ] +std = [ "log/std", "sp-arithmetic/std" ] diff --git a/frame/staking/runtime-api/Cargo.toml b/frame/staking/runtime-api/Cargo.toml index 5c9af0ad3cbe8..afb7ce721cd2e 100644 --- a/frame/staking/runtime-api/Cargo.toml +++ b/frame/staking/runtime-api/Cargo.toml @@ -17,8 +17,5 @@ codec = { package = "parity-scale-codec", version = "3.6.1", default-features = sp-api = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/api" } [features] -default = ["std"] -std = [ - "codec/std", - "sp-api/std", -] +default = [ "std" ] +std = [ "codec/std", "sp-api/std" ] diff --git a/frame/state-trie-migration/Cargo.toml b/frame/state-trie-migration/Cargo.toml index dd2693f10a851..d1bed941d4cce 100644 --- a/frame/state-trie-migration/Cargo.toml +++ b/frame/state-trie-migration/Cargo.toml @@ -35,20 +35,20 @@ pallet-balances = { path = "../balances" } sp-tracing = { path = "../../primitives/tracing" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", + "pallet-balances/std", "scale-info/std", "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "sp-tracing/std" + "sp-tracing/std", ] runtime-benchmarks = [ "frame-benchmarking", @@ -56,12 +56,19 @@ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", +] +remote-test = [ + "remote-externalities", + "serde", + "std", + "substrate-state-trie-migration-rpc", + "thousands", + "zstd", ] -remote-test = [ "remote-externalities", "serde", "std", "substrate-state-trie-migration-rpc", "thousands", "zstd" ] diff --git a/frame/statement/Cargo.toml b/frame/statement/Cargo.toml index cc51258165c90..4740c421d7f46 100644 --- a/frame/statement/Cargo.toml +++ b/frame/statement/Cargo.toml @@ -31,20 +31,20 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" } default = [ "std" ] std = [ "codec/std", - "scale-info/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", + "scale-info/std", "sp-api/std", - "sp-runtime/std", - "sp-std/std", - "sp-io/std", "sp-core/std", + "sp-io/std", + "sp-runtime/std", "sp-statement-store/std", - "pallet-balances/std" + "sp-std/std", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/sudo/Cargo.toml b/frame/sudo/Cargo.toml index 9f3851d91ef54..ed46ad53c2f61 100644 --- a/frame/sudo/Cargo.toml +++ b/frame/sudo/Cargo.toml @@ -26,26 +26,26 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../primitives sp-core = { version = "21.0.0", path = "../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "scale-info/std", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "sp-core/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "frame-support/runtime-benchmarks" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/support/Cargo.toml b/frame/support/Cargo.toml index 5d1dbd710223a..2b3d15e2ec0db 100644 --- a/frame/support/Cargo.toml +++ b/frame/support/Cargo.toml @@ -54,50 +54,53 @@ frame-system = { version = "4.0.0-dev", path = "../system" } array-bytes = "6.1" [features] -default = ["std"] +default = [ "std" ] std = [ - "sp-core/std", + "codec/std", + "environmental/std", + "frame-metadata/std", + "frame-support-procedural/std", + "frame-system/std", "k256/std", + "log/std", + "scale-info/std", "serde/std", "sp-api/std", - "sp-io/std", - "codec/std", - "scale-info/std", - "sp-std/std", - "sp-runtime/std", - "sp-tracing/std", "sp-arithmetic/std", - "frame-metadata/std", + "sp-core/std", + "sp-debug-derive/std", + "sp-genesis-builder/std", "sp-inherents/std", + "sp-io/std", + "sp-metadata-ir/std", + "sp-runtime/std", "sp-staking/std", "sp-state-machine/std", + "sp-std/std", + "sp-tracing/std", "sp-weights/std", - "frame-support-procedural/std", - "log/std", - "environmental/std", - "sp-genesis-builder/std", - "frame-system/std", - "sp-debug-derive/std", - "sp-metadata-ir/std" ] runtime-benchmarks = [ "frame-system/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "sp-staking/runtime-benchmarks" + "sp-staking/runtime-benchmarks", ] try-runtime = [ - "sp-debug-derive/force-debug", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-debug-derive/force-debug", + "sp-runtime/try-runtime", ] experimental = [] # By default some types have documentation, `no-metadata-docs` allows to reduce the documentation # in the metadata. -no-metadata-docs = ["frame-support-procedural/no-metadata-docs", "sp-api/no-metadata-docs"] +no-metadata-docs = [ + "frame-support-procedural/no-metadata-docs", + "sp-api/no-metadata-docs", +] # By default some types have documentation, `full-metadata-docs` allows to add documentation to # more types in the metadata. -full-metadata-docs = ["scale-info/docs"] +full-metadata-docs = [ "scale-info/docs" ] # Generate impl-trait for tuples with the given number of tuples. Will be needed as the number of # pallets in a runtime grows. Does increase the compile time! -tuples-96 = ["frame-support-procedural/tuples-96"] -tuples-128 = ["frame-support-procedural/tuples-128"] +tuples-96 = [ "frame-support-procedural/tuples-96" ] +tuples-128 = [ "frame-support-procedural/tuples-128" ] diff --git a/frame/support/procedural/Cargo.toml b/frame/support/procedural/Cargo.toml index f596713e5f115..a5d4e9e2e801f 100644 --- a/frame/support/procedural/Cargo.toml +++ b/frame/support/procedural/Cargo.toml @@ -28,7 +28,7 @@ macro_magic = { version = "0.4.2", features = ["proc_support"] } expander = "2.0.0" [features] -default = ["std"] +default = [ "std" ] std = [] no-metadata-docs = [] # Generate impl-trait for tuples with the given number of tuples. Will be needed as the number of diff --git a/frame/support/test/Cargo.toml b/frame/support/test/Cargo.toml index f6b665b1c7b3b..ecb171244299a 100644 --- a/frame/support/test/Cargo.toml +++ b/frame/support/test/Cargo.toml @@ -37,33 +37,33 @@ frame-executive = { version = "4.0.0-dev", default-features = false, path = "../ test-pallet = { package = "frame-support-test-pallet", default-features = false, path = "pallet" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking/std", "frame-executive/std", + "frame-metadata/std", "frame-support/std", "frame-system/std", "scale-info/std", "serde/std", "sp-api/std", "sp-arithmetic/std", - "frame-metadata/std", "sp-core/std", "sp-io/std", + "sp-metadata-ir/std", "sp-runtime/std", + "sp-state-machine/std", "sp-std/std", "sp-version/std", "test-pallet/std", - "sp-state-machine/std", - "sp-metadata-ir/std" ] -experimental = ["frame-support/experimental"] +experimental = [ "frame-support/experimental" ] try-runtime = [ + "frame-executive/try-runtime", "frame-support/try-runtime", "frame-system/try-runtime", - "frame-executive/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] # WARNING: # Only CI runs with this feature enabled. This feature is for testing stuff related to the FRAME macros @@ -72,4 +72,4 @@ frame-feature-testing = [] frame-feature-testing-2 = [] # Disable ui tests disable-ui-tests = [] -no-metadata-docs = ["frame-support/no-metadata-docs"] +no-metadata-docs = [ "frame-support/no-metadata-docs" ] diff --git a/frame/support/test/compile_pass/Cargo.toml b/frame/support/test/compile_pass/Cargo.toml index 5d6caa002b372..151f7d8a5be0e 100644 --- a/frame/support/test/compile_pass/Cargo.toml +++ b/frame/support/test/compile_pass/Cargo.toml @@ -21,11 +21,11 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../../.. sp-version = { version = "22.0.0", default-features = false, path = "../../../../primitives/version" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", - "renamed-frame-support/std", "frame-system/std", + "renamed-frame-support/std", "scale-info/std", "sp-core/std", "sp-runtime/std", diff --git a/frame/support/test/pallet/Cargo.toml b/frame/support/test/pallet/Cargo.toml index 6edfcd78968d1..073b751070152 100644 --- a/frame/support/test/pallet/Cargo.toml +++ b/frame/support/test/pallet/Cargo.toml @@ -20,12 +20,12 @@ frame-system = { version = "4.0.0-dev", default-features = false, path = "../../ sp-runtime = { version = "24.0.0", default-features = false, path = "../../../../primitives/runtime" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", "frame-system/std", "scale-info/std", "serde/std", - "sp-runtime/std" + "sp-runtime/std", ] diff --git a/frame/system/Cargo.toml b/frame/system/Cargo.toml index d1a0124d9923f..6530862832c3f 100644 --- a/frame/system/Cargo.toml +++ b/frame/system/Cargo.toml @@ -32,7 +32,7 @@ sp-externalities = { version = "0.19.0", path = "../../primitives/externalities" substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/runtime/client" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", @@ -40,21 +40,18 @@ std = [ "scale-info/std", "serde/std", "sp-core/std", + "sp-externalities/std", "sp-io/std", "sp-runtime/std", "sp-std/std", "sp-version/std", "sp-weights/std", - "sp-externalities/std" ] runtime-benchmarks = [ "frame-support/runtime-benchmarks", "sp-runtime/runtime-benchmarks", ] -try-runtime = [ - "frame-support/try-runtime", - "sp-runtime/try-runtime" -] +try-runtime = [ "frame-support/try-runtime", "sp-runtime/try-runtime" ] [[bench]] name = "bench" diff --git a/frame/system/benchmarking/Cargo.toml b/frame/system/benchmarking/Cargo.toml index 0d8165a3a44ca..098edbaa8bcd0 100644 --- a/frame/system/benchmarking/Cargo.toml +++ b/frame/system/benchmarking/Cargo.toml @@ -28,7 +28,7 @@ sp-externalities = { version = "0.19.0", path = "../../../primitives/externaliti sp-version = { version = "22.0.0", path = "../../../primitives/version" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking/std", @@ -36,16 +36,16 @@ std = [ "frame-system/std", "scale-info/std", "sp-core/std", - "sp-runtime/std", - "sp-std/std", "sp-externalities/std", "sp-io/std", - "sp-version/std" + "sp-runtime/std", + "sp-std/std", + "sp-version/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] diff --git a/frame/system/rpc/runtime-api/Cargo.toml b/frame/system/rpc/runtime-api/Cargo.toml index aef2cfc6e25f4..ec8348123cbb8 100644 --- a/frame/system/rpc/runtime-api/Cargo.toml +++ b/frame/system/rpc/runtime-api/Cargo.toml @@ -17,8 +17,5 @@ codec = { package = "parity-scale-codec", version = "3.6.1", default-features = sp-api = { version = "4.0.0-dev", default-features = false, path = "../../../../primitives/api" } [features] -default = ["std"] -std = [ - "codec/std", - "sp-api/std", -] +default = [ "std" ] +std = [ "codec/std", "sp-api/std" ] diff --git a/frame/timestamp/Cargo.toml b/frame/timestamp/Cargo.toml index c92fb6b75b1b9..6a5c9f9a0c060 100644 --- a/frame/timestamp/Cargo.toml +++ b/frame/timestamp/Cargo.toml @@ -31,30 +31,30 @@ sp-core = { version = "21.0.0", path = "../../primitives/core" } sp-io = { version = "23.0.0", path = "../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ - "sp-io?/std", "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", "scale-info/std", + "sp-core/std", "sp-inherents/std", + "sp-io?/std", "sp-runtime/std", "sp-std/std", "sp-timestamp/std", - "sp-core/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", - "sp-io", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-io", + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/tips/Cargo.toml b/frame/tips/Cargo.toml index aed4f6f96176d..61ecc681ec596 100644 --- a/frame/tips/Cargo.toml +++ b/frame/tips/Cargo.toml @@ -31,13 +31,14 @@ pallet-balances = { version = "4.0.0-dev", path = "../balances" } sp-storage = { version = "13.0.0", path = "../../primitives/storage" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", + "pallet-balances/std", "pallet-treasury/std", "scale-info/std", "serde", @@ -45,8 +46,7 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "sp-storage/std" + "sp-storage/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", @@ -54,12 +54,12 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-treasury/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", "pallet-treasury/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/transaction-payment/Cargo.toml b/frame/transaction-payment/Cargo.toml index 3f953d4eefe6e..8d4c0e55f798a 100644 --- a/frame/transaction-payment/Cargo.toml +++ b/frame/transaction-payment/Cargo.toml @@ -30,22 +30,22 @@ serde_json = "1.0.85" pallet-balances = { version = "4.0.0-dev", path = "../balances" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", "scale-info/std", "serde", "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/transaction-payment/asset-conversion-tx-payment/Cargo.toml b/frame/transaction-payment/asset-conversion-tx-payment/Cargo.toml index 69118cec04bcf..51ff136d8ae14 100644 --- a/frame/transaction-payment/asset-conversion-tx-payment/Cargo.toml +++ b/frame/transaction-payment/asset-conversion-tx-payment/Cargo.toml @@ -31,21 +31,21 @@ pallet-assets = { version = "4.0.0-dev", path = "../../assets" } pallet-balances = { version = "4.0.0-dev", path = "../../balances" } [features] -default = ["std"] +default = [ "std" ] std = [ - "scale-info/std", "codec/std", - "sp-std/std", - "sp-runtime/std", "frame-support/std", "frame-system/std", - "sp-io/std", - "sp-core/std", "pallet-asset-conversion/std", - "pallet-transaction-payment/std", "pallet-assets/std", "pallet-balances/std", - "sp-storage/std" + "pallet-transaction-payment/std", + "scale-info/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", + "sp-storage/std", ] try-runtime = [ "frame-support/try-runtime", @@ -54,5 +54,5 @@ try-runtime = [ "pallet-assets/try-runtime", "pallet-balances/try-runtime", "pallet-transaction-payment/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/transaction-payment/asset-tx-payment/Cargo.toml b/frame/transaction-payment/asset-tx-payment/Cargo.toml index 056880423f2a8..42dd65beddb5c 100644 --- a/frame/transaction-payment/asset-tx-payment/Cargo.toml +++ b/frame/transaction-payment/asset-tx-payment/Cargo.toml @@ -39,31 +39,31 @@ pallet-authorship = { version = "4.0.0-dev", path = "../../authorship" } pallet-balances = { version = "4.0.0-dev", path = "../../balances" } [features] -default = ["std"] +default = [ "std" ] std = [ - "scale-info/std", - "serde", "codec/std", - "sp-std/std", - "sp-runtime/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", - "sp-io/std", - "sp-core/std", - "pallet-transaction-payment/std", - "frame-benchmarking?/std", "pallet-assets/std", "pallet-authorship/std", "pallet-balances/std", - "sp-storage/std" + "pallet-transaction-payment/std", + "scale-info/std", + "serde", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", + "sp-storage/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", - "sp-runtime/runtime-benchmarks", - "frame-system/runtime-benchmarks", "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", "pallet-assets/runtime-benchmarks", - "pallet-balances/runtime-benchmarks" + "pallet-balances/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", @@ -72,5 +72,5 @@ try-runtime = [ "pallet-authorship/try-runtime", "pallet-balances/try-runtime", "pallet-transaction-payment/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/transaction-payment/rpc/runtime-api/Cargo.toml b/frame/transaction-payment/rpc/runtime-api/Cargo.toml index 5cb7ebd7a2b8b..27b8417b1f3b4 100644 --- a/frame/transaction-payment/rpc/runtime-api/Cargo.toml +++ b/frame/transaction-payment/rpc/runtime-api/Cargo.toml @@ -20,7 +20,7 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../../.. sp-weights = { version = "20.0.0", default-features = false, path = "../../../../primitives/weights" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "pallet-transaction-payment/std", diff --git a/frame/transaction-storage/Cargo.toml b/frame/transaction-storage/Cargo.toml index ae94e4a9bf013..6456e3002866c 100644 --- a/frame/transaction-storage/Cargo.toml +++ b/frame/transaction-storage/Cargo.toml @@ -33,34 +33,34 @@ sp-core = { version = "21.0.0", default-features = false, path = "../../primitiv sp-transaction-storage-proof = { version = "4.0.0-dev", default-features = true, path = "../../primitives/transaction-storage-proof" } [features] -default = ["std"] +default = [ "std" ] runtime-benchmarks = [ "array-bytes", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] std = [ - "log/std", - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "log/std", "pallet-balances/std", "scale-info/std", "serde", + "sp-core/std", "sp-inherents/std", "sp-io/std", "sp-runtime/std", "sp-std/std", "sp-transaction-storage-proof/std", - "sp-core/std" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/treasury/Cargo.toml b/frame/treasury/Cargo.toml index f692f204b9b3c..f49f3ccf756ce 100644 --- a/frame/treasury/Cargo.toml +++ b/frame/treasury/Cargo.toml @@ -33,20 +33,20 @@ sp-io = { version = "23.0.0", path = "../../primitives/io" } pallet-utility = { version = "4.0.0-dev", path = "../utility" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "pallet-balances/std", + "pallet-utility/std", "scale-info/std", "serde", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-utility/std", - "sp-core/std", - "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", @@ -54,12 +54,12 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-utility/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", "pallet-utility/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/try-runtime/Cargo.toml b/frame/try-runtime/Cargo.toml index f9b99ba598994..afd97632b3242 100644 --- a/frame/try-runtime/Cargo.toml +++ b/frame/try-runtime/Cargo.toml @@ -27,7 +27,4 @@ std = [ "sp-runtime/std", "sp-std/std", ] -try-runtime = [ - "frame-support/try-runtime", - "sp-runtime/try-runtime" -] +try-runtime = [ "frame-support/try-runtime", "sp-runtime/try-runtime" ] diff --git a/frame/uniques/Cargo.toml b/frame/uniques/Cargo.toml index 9ddcef1e7b10b..28ebc1ff50fe5 100644 --- a/frame/uniques/Cargo.toml +++ b/frame/uniques/Cargo.toml @@ -29,30 +29,30 @@ sp-io = { version = "23.0.0", path = "../../primitives/io" } sp-std = { version = "8.0.0", path = "../../primitives/std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", + "pallet-balances/std", "scale-info/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "sp-core/std", - "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", "sp-runtime/runtime-benchmarks", - "frame-support/runtime-benchmarks", - "pallet-balances/runtime-benchmarks" ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/utility/Cargo.toml b/frame/utility/Cargo.toml index 87281f0abdf19..76eafeb2db57b 100644 --- a/frame/utility/Cargo.toml +++ b/frame/utility/Cargo.toml @@ -31,30 +31,30 @@ pallet-timestamp = { version = "4.0.0-dev", path = "../timestamp" } sp-core = { version = "21.0.0", path = "../../primitives/core" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", + "pallet-collective/std", + "pallet-root-testing/std", + "pallet-timestamp/std", "scale-info/std", "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "pallet-collective/std", - "pallet-root-testing/std", - "pallet-timestamp/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "pallet-collective/runtime-benchmarks", "pallet-balances/runtime-benchmarks", + "pallet-collective/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", @@ -63,5 +63,5 @@ try-runtime = [ "pallet-collective/try-runtime", "pallet-root-testing/try-runtime", "pallet-timestamp/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/vesting/Cargo.toml b/frame/vesting/Cargo.toml index 1bf4491f3495b..e6826903c9dfb 100644 --- a/frame/vesting/Cargo.toml +++ b/frame/vesting/Cargo.toml @@ -30,30 +30,30 @@ sp-core = { version = "21.0.0", path = "../../primitives/core" } sp-io = { version = "23.0.0", default-features = false, path = "../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", "log/std", + "pallet-balances/std", "scale-info/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "sp-core/std", - "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/frame/whitelist/Cargo.toml b/frame/whitelist/Cargo.toml index ba05859df2913..f82900340f386 100644 --- a/frame/whitelist/Cargo.toml +++ b/frame/whitelist/Cargo.toml @@ -28,34 +28,34 @@ sp-core = { version = "21.0.0", path = "../../primitives/core" } sp-io = { version = "23.0.0", path = "../../primitives/io" } [features] -default = ["std"] +default = [ "std" ] std = [ - "frame-benchmarking?/std", "codec/std", + "frame-benchmarking?/std", "frame-support/std", "frame-system/std", + "pallet-balances/std", + "pallet-preimage/std", "scale-info/std", "sp-api/std", + "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", - "pallet-balances/std", - "pallet-preimage/std", - "sp-core/std", - "sp-io/std" ] runtime-benchmarks = [ "frame-benchmarking", + "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", - "frame-benchmarking/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-preimage/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime", "pallet-balances/try-runtime", "pallet-preimage/try-runtime", - "sp-runtime/try-runtime" + "sp-runtime/try-runtime", ] diff --git a/primitives/api/Cargo.toml b/primitives/api/Cargo.toml index 2f0fe5d5d93cb..544afe6980fa3 100644 --- a/primitives/api/Cargo.toml +++ b/primitives/api/Cargo.toml @@ -32,24 +32,24 @@ log = { version = "0.4.17", default-features = false } sp-test-primitives = { version = "2.0.0", path = "../test-primitives" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", + "hash-db", + "log/std", + "scale-info/std", + "sp-api-proc-macro/std", "sp-core/std", "sp-externalities", - "sp-std/std", + "sp-externalities?/std", + "sp-metadata-ir?/std", "sp-runtime/std", "sp-state-machine/std", + "sp-std/std", + "sp-test-primitives/std", "sp-trie/std", "sp-version/std", - "hash-db", "thiserror", - "log/std", - "scale-info/std", - "sp-metadata-ir?/std", - "sp-api-proc-macro/std", - "sp-externalities?/std", - "sp-test-primitives/std" ] # Special feature to disable logging completely. # @@ -58,10 +58,7 @@ std = [ # building a runtime for registering it on chain. # # This sets the max logging level to `off` for `log`. -disable-logging = ["log/max_level_off"] +disable-logging = [ "log/max_level_off" ] # Do not report the documentation in the metadata. -no-metadata-docs = ["sp-api-proc-macro/no-metadata-docs"] -frame-metadata = [ - "sp-metadata-ir", - "sp-api-proc-macro/frame-metadata" -] +no-metadata-docs = [ "sp-api-proc-macro/no-metadata-docs" ] +frame-metadata = [ "sp-api-proc-macro/frame-metadata", "sp-metadata-ir" ] diff --git a/primitives/api/proc-macro/Cargo.toml b/primitives/api/proc-macro/Cargo.toml index fb6513806c812..862cf00fdd67c 100644 --- a/primitives/api/proc-macro/Cargo.toml +++ b/primitives/api/proc-macro/Cargo.toml @@ -29,7 +29,7 @@ assert_matches = "1.3.0" [features] # Required for the doc tests -default = ["std"] +default = [ "std" ] std = [] no-metadata-docs = [] frame-metadata = [] diff --git a/primitives/application-crypto/Cargo.toml b/primitives/application-crypto/Cargo.toml index f27ec881e1961..e4daebd51c197 100644 --- a/primitives/application-crypto/Cargo.toml +++ b/primitives/application-crypto/Cargo.toml @@ -25,40 +25,33 @@ sp-io = { version = "23.0.0", default-features = false, path = "../io" } [features] default = [ "std" ] std = [ - "full_crypto", - "sp-core/std", "codec/std", + "full_crypto", "scale-info/std", "serde/std", - "sp-std/std", + "sp-core/std", "sp-io/std", + "sp-std/std", ] # Serde support without relying on std features. -serde = [ - "dep:serde", - "sp-core/serde", - "scale-info/serde", -] +serde = [ "dep:serde", "scale-info/serde", "sp-core/serde" ] # This feature enables all crypto primitives for `no_std` builds like microcontrollers # or Intel SGX. # For the regular wasm runtime builds this should not be used. full_crypto = [ "sp-core/full_crypto", + "sp-io/disable_oom", # Don't add `panic_handler` and `alloc_error_handler` since they are expected to be provided # by the user anyway. "sp-io/disable_panic_handler", - "sp-io/disable_oom", ] # This feature adds BLS crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bls-experimental = [ - "sp-core/bls-experimental", - "sp-io/bls-experimental", -] +bls-experimental = [ "sp-core/bls-experimental", "sp-io/bls-experimental" ] # This feature adds Bandersnatch crypto primitives. # It should not be used in production since the implementation and interface may still diff --git a/primitives/arithmetic/Cargo.toml b/primitives/arithmetic/Cargo.toml index 972dfee29d12b..d7b9b2bf74791 100644 --- a/primitives/arithmetic/Cargo.toml +++ b/primitives/arithmetic/Cargo.toml @@ -32,20 +32,17 @@ sp-core = { version = "21.0.0", features = ["full_crypto"], path = "../core" } rand = "0.8.5" [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "num-traits/std", "scale-info/std", "serde/std", + "sp-core/std", "sp-std/std", - "sp-core/std" ] # Serde support without relying on std features. -serde = [ - "dep:serde", - "scale-info/serde", -] +serde = [ "dep:serde", "scale-info/serde" ] [[bench]] name = "bench" diff --git a/primitives/authority-discovery/Cargo.toml b/primitives/authority-discovery/Cargo.toml index 03c9ef2c7d26b..8e47208238a39 100644 --- a/primitives/authority-discovery/Cargo.toml +++ b/primitives/authority-discovery/Cargo.toml @@ -21,7 +21,7 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../runtime" sp-std = { version = "8.0.0", default-features = false, path = "../std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "scale-info/std", diff --git a/primitives/block-builder/Cargo.toml b/primitives/block-builder/Cargo.toml index ba0e1f041e0da..1b62747770a6e 100644 --- a/primitives/block-builder/Cargo.toml +++ b/primitives/block-builder/Cargo.toml @@ -20,9 +20,4 @@ sp-std = { version = "8.0.0", default-features = false, path = "../std" } [features] default = [ "std" ] -std = [ - "sp-api/std", - "sp-inherents/std", - "sp-runtime/std", - "sp-std/std", -] +std = [ "sp-api/std", "sp-inherents/std", "sp-runtime/std", "sp-std/std" ] diff --git a/primitives/consensus/aura/Cargo.toml b/primitives/consensus/aura/Cargo.toml index b50e43acfd653..f841a65a7d6cf 100644 --- a/primitives/consensus/aura/Cargo.toml +++ b/primitives/consensus/aura/Cargo.toml @@ -25,7 +25,7 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../std" } sp-timestamp = { version = "4.0.0-dev", default-features = false, path = "../../timestamp" } [features] -default = ["std"] +default = [ "std" ] std = [ "async-trait", "codec/std", diff --git a/primitives/consensus/babe/Cargo.toml b/primitives/consensus/babe/Cargo.toml index 3e22c89a29d64..ca502c2c6ddb3 100644 --- a/primitives/consensus/babe/Cargo.toml +++ b/primitives/consensus/babe/Cargo.toml @@ -27,7 +27,7 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../std" } sp-timestamp = { version = "4.0.0-dev", optional = true, path = "../../timestamp" } [features] -default = ["std"] +default = [ "std" ] std = [ "async-trait", "codec/std", @@ -40,7 +40,7 @@ std = [ "sp-inherents/std", "sp-runtime/std", "sp-std/std", - "sp-timestamp/std", + "sp-timestamp/std", ] # Serde support without relying on std features. diff --git a/primitives/consensus/beefy/Cargo.toml b/primitives/consensus/beefy/Cargo.toml index e6445919e2a1a..bbc69cef7466d 100644 --- a/primitives/consensus/beefy/Cargo.toml +++ b/primitives/consensus/beefy/Cargo.toml @@ -30,7 +30,7 @@ array-bytes = "6.1" w3f-bls = { version = "0.1.3", features = ["std"]} [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "scale-info/std", @@ -56,6 +56,6 @@ serde = [ # This feature adds BLS crypto primitives. It should not be used in production since # the BLS implementation and interface may still be subject to significant change. bls-experimental = [ - "sp-core/bls-experimental", - "sp-application-crypto/bls-experimental", + "sp-application-crypto/bls-experimental", + "sp-core/bls-experimental", ] diff --git a/primitives/consensus/grandpa/Cargo.toml b/primitives/consensus/grandpa/Cargo.toml index 2d0ff26f89702..1bbbbe61bb541 100644 --- a/primitives/consensus/grandpa/Cargo.toml +++ b/primitives/consensus/grandpa/Cargo.toml @@ -27,7 +27,7 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../runti sp-std = { version = "8.0.0", default-features = false, path = "../../std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "grandpa/std", @@ -37,9 +37,9 @@ std = [ "sp-api/std", "sp-application-crypto/std", "sp-core/std", - "sp-keystore/std", - "sp-runtime/std", - "sp-std/std" + "sp-keystore/std", + "sp-runtime/std", + "sp-std/std", ] # Serde support without relying on std features. diff --git a/primitives/consensus/pow/Cargo.toml b/primitives/consensus/pow/Cargo.toml index 1c8c75c4b1934..491486fe0c396 100644 --- a/primitives/consensus/pow/Cargo.toml +++ b/primitives/consensus/pow/Cargo.toml @@ -20,7 +20,7 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../runti sp-std = { version = "8.0.0", default-features = false, path = "../../std" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "sp-api/std", diff --git a/primitives/consensus/slots/Cargo.toml b/primitives/consensus/slots/Cargo.toml index a0404f46abffa..ffc347a78697e 100644 --- a/primitives/consensus/slots/Cargo.toml +++ b/primitives/consensus/slots/Cargo.toml @@ -20,7 +20,7 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../std" } sp-timestamp = { version = "4.0.0-dev", default-features = false, path = "../../timestamp" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "scale-info/std", @@ -30,7 +30,4 @@ std = [ ] # Serde support without relying on std features. -serde = [ - "dep:serde", - "scale-info/serde", -] +serde = [ "dep:serde", "scale-info/serde" ] diff --git a/primitives/core/Cargo.toml b/primitives/core/Cargo.toml index ee4bf8924186c..85952b355464d 100644 --- a/primitives/core/Cargo.toml +++ b/primitives/core/Cargo.toml @@ -73,67 +73,67 @@ harness = false bench = false [features] -default = ["std"] +default = [ "std" ] std = [ + "array-bytes", "arrayvec/std", - "merlin/std", + "bandersnatch_vrfs/getrandom", + "blake2/std", + "bounded-collections/std", + "bs58/std", + "codec/std", + "dyn-clonable", + "ed25519-zebra/std", "full_crypto", - "log/std", - "thiserror", + "futures", + "futures/thread-pool", + "hash-db/std", + "hash256-std-hasher/std", + "impl-serde/std", "lazy_static", + "libsecp256k1/std", + "log/std", + "merlin/std", "parking_lot", - "bandersnatch_vrfs/getrandom", - "bounded-collections/std", - "primitive-types/std", - "primitive-types/serde", "primitive-types/byteorder", "primitive-types/rustc-hex", - "impl-serde/std", - "codec/std", - "scale-info/std", - "hash256-std-hasher/std", - "hash-db/std", - "sp-std/std", - "serde/std", - "blake2/std", - "array-bytes", - "ed25519-zebra/std", - "bs58/std", - "substrate-bip39", - "tiny-bip39", + "primitive-types/serde", + "primitive-types/std", "rand", - "schnorrkel/std", "regex", - "secp256k1/std", + "scale-info/std", + "schnorrkel/std", "secp256k1/global-context", + "secp256k1/std", + "secrecy/alloc", + "serde/std", "sp-core-hashing/std", "sp-debug-derive/std", - "sp-storage/std", + "sp-externalities/std", "sp-runtime-interface/std", + "sp-std/std", + "sp-storage/std", "ss58-registry/std", - "zeroize/alloc", - "secrecy/alloc", - "futures", - "futures/thread-pool", - "libsecp256k1/std", - "dyn-clonable", + "substrate-bip39", + "thiserror", + "tiny-bip39", "tracing", - "sp-externalities/std" + "zeroize/alloc", ] # Serde support without relying on std features. serde = [ - "dep:serde", "array-bytes", "blake2", "bounded-collections/serde", "bs58/alloc", - "scale-info/serde", - "secrecy/alloc", + "dep:serde", "impl-serde", "primitive-types/serde_no_std", - "sp-storage/serde", + "scale-info/serde", + "secrecy/alloc", "sp-core-hashing", + "sp-storage/serde", ] # This feature enables all crypto primitives for `no_std` builds like microcontrollers @@ -141,8 +141,8 @@ serde = [ # For the regular wasm runtime builds this should not be used. full_crypto = [ "array-bytes", - "ed25519-zebra", "blake2", + "ed25519-zebra", "libsecp256k1", "secp256k1", "sp-core-hashing", @@ -152,9 +152,9 @@ full_crypto = [ # This feature adds BLS crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bls-experimental = ["w3f-bls"] +bls-experimental = [ "w3f-bls" ] # This feature adds Bandersnatch crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bandersnatch-experimental = ["bandersnatch_vrfs"] +bandersnatch-experimental = [ "bandersnatch_vrfs" ] diff --git a/primitives/core/hashing/Cargo.toml b/primitives/core/hashing/Cargo.toml index 43a13883358ea..a4ddb6363f774 100644 --- a/primitives/core/hashing/Cargo.toml +++ b/primitives/core/hashing/Cargo.toml @@ -21,11 +21,11 @@ sha3 = { version = "0.10.0", default-features = false } twox-hash = { version = "1.6.3", default-features = false, features = ["digest_0_10"] } [features] -default = ["std"] +default = [ "std" ] std = [ - "digest/std", "blake2b_simd/std", "byteorder/std", + "digest/std", "sha2/std", "sha3/std", "twox-hash/std", diff --git a/primitives/crypto/ec-utils/Cargo.toml b/primitives/crypto/ec-utils/Cargo.toml index 9c28c9af9f3bb..90cd38722e0e1 100644 --- a/primitives/crypto/ec-utils/Cargo.toml +++ b/primitives/crypto/ec-utils/Cargo.toml @@ -39,24 +39,24 @@ sp-ark-ed-on-bls12-381-bandersnatch = { version = "0.4.0-beta", default-features [features] default = [ "std" ] std = [ - "ark-serialize/std", - "ark-ff/std", - "ark-ec/std", - "ark-std/std", + "ark-algebra-test-templates/std", "ark-bls12-377/std", "ark-bls12-381/std", "ark-bw6-761/std", - "ark-ed-on-bls12-381-bandersnatch/std", + "ark-ec/std", "ark-ed-on-bls12-377/std", - "sp-std/std", - "codec/std", + "ark-ed-on-bls12-381-bandersnatch/std", + "ark-ff/std", "ark-scale/std", - "sp-runtime-interface/std", - "sp-io/std", - "ark-algebra-test-templates/std", + "ark-serialize/std", + "ark-std/std", + "codec/std", "sp-ark-bls12-377/std", "sp-ark-bls12-381/std", - "sp-ark-bw6-761/std", - "sp-ark-ed-on-bls12-377/std", - "sp-ark-ed-on-bls12-381-bandersnatch/std", + "sp-ark-bw6-761/std", + "sp-ark-ed-on-bls12-377/std", + "sp-ark-ed-on-bls12-381-bandersnatch/std", + "sp-io/std", + "sp-runtime-interface/std", + "sp-std/std", ] diff --git a/primitives/externalities/Cargo.toml b/primitives/externalities/Cargo.toml index 71dbd122bebec..58edbf83a3cef 100644 --- a/primitives/externalities/Cargo.toml +++ b/primitives/externalities/Cargo.toml @@ -20,10 +20,5 @@ sp-std = { version = "8.0.0", default-features = false, path = "../std" } sp-storage = { version = "13.0.0", default-features = false, path = "../storage" } [features] -default = ["std"] -std = [ - "codec/std", - "environmental/std", - "sp-std/std", - "sp-storage/std", -] +default = [ "std" ] +std = [ "codec/std", "environmental/std", "sp-std/std", "sp-storage/std" ] diff --git a/primitives/genesis-builder/Cargo.toml b/primitives/genesis-builder/Cargo.toml index d17c6b5da8024..7760ceb3b6dbd 100644 --- a/primitives/genesis-builder/Cargo.toml +++ b/primitives/genesis-builder/Cargo.toml @@ -20,9 +20,4 @@ serde_json = { version = "1.0.85", default-features = false, features = ["alloc" [features] default = [ "std" ] -std = [ - "sp-api/std", - "sp-std/std", - "serde_json/std", - "sp-runtime/std" -] +std = [ "serde_json/std", "sp-api/std", "sp-runtime/std", "sp-std/std" ] diff --git a/primitives/io/Cargo.toml b/primitives/io/Cargo.toml index 3a9a573456668..8ff06596efba9 100644 --- a/primitives/io/Cargo.toml +++ b/primitives/io/Cargo.toml @@ -39,29 +39,27 @@ ed25519-dalek = { version = "2.0.0", default-features = false, optional = true } rustversion = "1.0.6" [features] -default = ["std"] +default = [ "std" ] std = [ "bytes/std", - "sp-externalities/std", - "sp-core/std", "codec/std", - "sp-std/std", - "sp-trie/std", - "sp-state-machine/std", + "ed25519-dalek", "libsecp256k1", + "log", "secp256k1", + "sp-core/std", + "sp-externalities/std", + "sp-keystore/std", "sp-runtime-interface/std", + "sp-state-machine/std", + "sp-std/std", "sp-tracing/std", - "tracing/std", + "sp-trie/std", "tracing-core/std", - "log", - "ed25519-dalek", - "sp-keystore/std" + "tracing/std", ] -with-tracing = [ - "sp-tracing/with-tracing" -] +with-tracing = [ "sp-tracing/with-tracing" ] # These two features are used for `no_std` builds for the environments which already provides # `#[panic_handler]`, `#[alloc_error_handler]` and `#[global_allocator]`. @@ -93,13 +91,9 @@ improved_panic_error_reporting = [] # This feature adds BLS crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bls-experimental = [ - "sp-keystore/bls-experimental", -] +bls-experimental = [ "sp-keystore/bls-experimental" ] # This feature adds Bandersnatch crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bandersnatch-experimental = [ - "sp-keystore/bandersnatch-experimental", -] +bandersnatch-experimental = [ "sp-keystore/bandersnatch-experimental" ] diff --git a/primitives/keyring/Cargo.toml b/primitives/keyring/Cargo.toml index 8e9f793636066..c2d20dba49014 100644 --- a/primitives/keyring/Cargo.toml +++ b/primitives/keyring/Cargo.toml @@ -23,4 +23,4 @@ sp-runtime = { version = "24.0.0", path = "../runtime" } # This feature adds Bandersnatch crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bandersnatch-experimental = ["sp-core/bandersnatch-experimental"] +bandersnatch-experimental = [ "sp-core/bandersnatch-experimental" ] diff --git a/primitives/keystore/Cargo.toml b/primitives/keystore/Cargo.toml index 7e551b7cbf268..e9e699f4cc6c0 100644 --- a/primitives/keystore/Cargo.toml +++ b/primitives/keystore/Cargo.toml @@ -24,19 +24,15 @@ rand = "0.7.2" rand_chacha = "0.2.2" [features] -default = ["std"] -std = [ - "codec/std", - "sp-core/std", - "sp-externalities/std", -] +default = [ "std" ] +std = [ "codec/std", "sp-core/std", "sp-externalities/std" ] # This feature adds BLS crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bls-experimental = ["sp-core/bls-experimental"] +bls-experimental = [ "sp-core/bls-experimental" ] # This feature adds Bandersnatch crypto primitives. # It should not be used in production since the implementation and interface may still # be subject to significant changes. -bandersnatch-experimental = ["sp-core/bandersnatch-experimental"] +bandersnatch-experimental = [ "sp-core/bandersnatch-experimental" ] diff --git a/primitives/merkle-mountain-range/Cargo.toml b/primitives/merkle-mountain-range/Cargo.toml index 9ede77ba40be2..606774d12d5b3 100644 --- a/primitives/merkle-mountain-range/Cargo.toml +++ b/primitives/merkle-mountain-range/Cargo.toml @@ -28,7 +28,7 @@ thiserror = "1.0" array-bytes = "6.1" [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "log/std", @@ -42,9 +42,4 @@ std = [ ] # Serde support without relying on std features. -serde = [ - "dep:serde", - "scale-info/serde", - "sp-core/serde", - "sp-runtime/serde", -] +serde = [ "dep:serde", "scale-info/serde", "sp-core/serde", "sp-runtime/serde" ] diff --git a/primitives/metadata-ir/Cargo.toml b/primitives/metadata-ir/Cargo.toml index 49fd23e208e41..c06aaa5c48b69 100644 --- a/primitives/metadata-ir/Cargo.toml +++ b/primitives/metadata-ir/Cargo.toml @@ -19,10 +19,5 @@ scale-info = { version = "2.1.1", default-features = false, features = ["derive" sp-std = { version = "8.0.0", default-features = false, path = "../std" } [features] -default = ["std"] -std = [ - "codec/std", - "frame-metadata/std", - "scale-info/std", - "sp-std/std", -] +default = [ "std" ] +std = [ "codec/std", "frame-metadata/std", "scale-info/std", "sp-std/std" ] diff --git a/primitives/npos-elections/Cargo.toml b/primitives/npos-elections/Cargo.toml index cd704082f5713..7faab23b04fbd 100644 --- a/primitives/npos-elections/Cargo.toml +++ b/primitives/npos-elections/Cargo.toml @@ -26,7 +26,7 @@ rand = "0.8.5" substrate-test-utils = { version = "4.0.0-dev", path = "../../test-utils" } [features] -default = ["std"] +default = [ "std" ] bench = [] std = [ "codec/std", diff --git a/primitives/offchain/Cargo.toml b/primitives/offchain/Cargo.toml index 6d73bf9212138..0e1c98fb1cf17 100644 --- a/primitives/offchain/Cargo.toml +++ b/primitives/offchain/Cargo.toml @@ -18,5 +18,5 @@ sp-core = { version = "21.0.0", default-features = false, path = "../core" } sp-runtime = { version = "24.0.0", default-features = false, path = "../runtime" } [features] -default = ["std"] -std = ["sp-api/std", "sp-core/std", "sp-runtime/std"] +default = [ "std" ] +std = [ "sp-api/std", "sp-core/std", "sp-runtime/std" ] diff --git a/primitives/runtime-interface/Cargo.toml b/primitives/runtime-interface/Cargo.toml index e0d6d9d89bd31..49ed49e1b417e 100644 --- a/primitives/runtime-interface/Cargo.toml +++ b/primitives/runtime-interface/Cargo.toml @@ -37,18 +37,18 @@ trybuild = "1.0.74" [features] default = [ "std" ] std = [ - "sp-storage/std", "bytes/std", - "sp-wasm-interface/std", - "sp-std/std", - "sp-tracing/std", "codec/std", - "sp-externalities/std", "primitive-types/std", "sp-core/std", + "sp-externalities/std", "sp-io/std", "sp-runtime-interface-test-wasm/std", - "sp-state-machine/std" + "sp-state-machine/std", + "sp-std/std", + "sp-storage/std", + "sp-tracing/std", + "sp-wasm-interface/std", ] # ATTENTION diff --git a/primitives/runtime-interface/test-wasm-deprecated/Cargo.toml b/primitives/runtime-interface/test-wasm-deprecated/Cargo.toml index 2ff86086a890b..d2fd8a2f2c5c4 100644 --- a/primitives/runtime-interface/test-wasm-deprecated/Cargo.toml +++ b/primitives/runtime-interface/test-wasm-deprecated/Cargo.toml @@ -23,8 +23,8 @@ substrate-wasm-builder = { version = "5.0.0-dev", path = "../../../utils/wasm-bu [features] default = [ "std" ] std = [ - "sp-core/std", - "sp-io/std", - "sp-runtime-interface/std", - "substrate-wasm-builder", + "sp-core/std", + "sp-io/std", + "sp-runtime-interface/std", + "substrate-wasm-builder", ] diff --git a/primitives/runtime-interface/test-wasm/Cargo.toml b/primitives/runtime-interface/test-wasm/Cargo.toml index 82fa35267cf51..b1ab8531b0e7d 100644 --- a/primitives/runtime-interface/test-wasm/Cargo.toml +++ b/primitives/runtime-interface/test-wasm/Cargo.toml @@ -25,9 +25,9 @@ substrate-wasm-builder = { version = "5.0.0-dev", path = "../../../utils/wasm-bu [features] default = [ "std" ] std = [ - "sp-core/std", - "sp-io/std", - "sp-runtime-interface/std", - "sp-std/std", - "substrate-wasm-builder", + "sp-core/std", + "sp-io/std", + "sp-runtime-interface/std", + "sp-std/std", + "substrate-wasm-builder", ] diff --git a/primitives/runtime/Cargo.toml b/primitives/runtime/Cargo.toml index 246b2a2ed2eb0..52affa6aa70c4 100644 --- a/primitives/runtime/Cargo.toml +++ b/primitives/runtime/Cargo.toml @@ -42,7 +42,7 @@ substrate-test-runtime-client = { version = "2.0.0", path = "../../test-utils/ru [features] runtime-benchmarks = [] try-runtime = [] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "either/use_std", @@ -51,15 +51,15 @@ std = [ "rand", "scale-info/std", "serde/std", + "sp-api/std", "sp-application-crypto/std", "sp-arithmetic/std", "sp-core/std", "sp-io/std", + "sp-state-machine/std", "sp-std/std", + "sp-tracing/std", "sp-weights/std", - "sp-api/std", - "sp-state-machine/std", - "sp-tracing/std" ] # Serde support without relying on std features. diff --git a/primitives/session/Cargo.toml b/primitives/session/Cargo.toml index f547608fe51e7..79ccc110aa781 100644 --- a/primitives/session/Cargo.toml +++ b/primitives/session/Cargo.toml @@ -29,8 +29,8 @@ std = [ "scale-info/std", "sp-api/std", "sp-core/std", + "sp-keystore/std", "sp-runtime/std", "sp-staking/std", "sp-std/std", - "sp-keystore/std" ] diff --git a/primitives/staking/Cargo.toml b/primitives/staking/Cargo.toml index 43ee307aa109a..8fe2f19ad19f6 100644 --- a/primitives/staking/Cargo.toml +++ b/primitives/staking/Cargo.toml @@ -23,15 +23,13 @@ sp-runtime = { default-features = false, path = "../runtime" } sp-std = { default-features = false, path = "../std" } [features] -default = ["std"] +default = [ "std" ] std = [ - "serde/std", "codec/std", "scale-info/std", + "serde/std", "sp-core/std", "sp-runtime/std", "sp-std/std", ] -runtime-benchmarks = [ - "sp-runtime/runtime-benchmarks" -] +runtime-benchmarks = [ "sp-runtime/runtime-benchmarks" ] diff --git a/primitives/state-machine/Cargo.toml b/primitives/state-machine/Cargo.toml index 32be8e518f49f..0f5613545b5dc 100644 --- a/primitives/state-machine/Cargo.toml +++ b/primitives/state-machine/Cargo.toml @@ -37,7 +37,7 @@ sp-runtime = { version = "24.0.0", path = "../runtime" } assert_matches = "1.5" [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "hash-db/std", @@ -47,10 +47,10 @@ std = [ "sp-core/std", "sp-externalities/std", "sp-panic-handler", + "sp-runtime/std", "sp-std/std", "sp-trie/std", - "trie-db/std", "thiserror", "tracing", - "sp-runtime/std" + "trie-db/std", ] diff --git a/primitives/statement-store/Cargo.toml b/primitives/statement-store/Cargo.toml index d5612eaca8c19..fffb110195d7e 100644 --- a/primitives/statement-store/Cargo.toml +++ b/primitives/statement-store/Cargo.toml @@ -34,30 +34,29 @@ sha2 = { version = "0.10.7", optional = true } rand = { version = "0.8.5", features = ["small_rng"], optional = true } [features] -default = ["std"] +default = [ "std" ] std = [ + "aes-gcm", "codec/std", + "curve25519-dalek", + "ed25519-dalek", + "hkdf", + "rand", "scale-info/std", + "sha2", + "sp-api/std", + "sp-application-crypto/std", "sp-core/std", - "sp-runtime/std", + "sp-externalities/std", "sp-runtime-interface/std", + "sp-runtime/std", "sp-std/std", - "sp-api/std", - "sp-application-crypto/std", "thiserror", - - "ed25519-dalek", "x25519-dalek", - "curve25519-dalek", - "aes-gcm", - "hkdf", - "sha2", - "rand", - "sp-externalities/std" ] serde = [ - "scale-info/serde", - "sp-application-crypto/serde", - "sp-core/serde", - "sp-runtime/serde", + "scale-info/serde", + "sp-application-crypto/serde", + "sp-core/serde", + "sp-runtime/serde", ] diff --git a/primitives/std/Cargo.toml b/primitives/std/Cargo.toml index d16b15f0e6189..4c58d147c7a7a 100644 --- a/primitives/std/Cargo.toml +++ b/primitives/std/Cargo.toml @@ -14,5 +14,5 @@ readme = "README.md" targets = ["x86_64-unknown-linux-gnu"] [features] -default = ["std"] +default = [ "std" ] std = [] diff --git a/primitives/storage/Cargo.toml b/primitives/storage/Cargo.toml index 412a2b15e0599..42fa01184ff3e 100644 --- a/primitives/storage/Cargo.toml +++ b/primitives/storage/Cargo.toml @@ -32,7 +32,4 @@ std = [ ] # Serde support without relying on std features. -serde = [ - "dep:serde", - "impl-serde", -] +serde = [ "dep:serde", "impl-serde" ] diff --git a/primitives/test-primitives/Cargo.toml b/primitives/test-primitives/Cargo.toml index 8a1ae4d01e405..a14f3fb9b8a47 100644 --- a/primitives/test-primitives/Cargo.toml +++ b/primitives/test-primitives/Cargo.toml @@ -21,17 +21,15 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../runtime" sp-std = { version = "8.0.0", default-features = false, path = "../std" } [features] -default = [ - "std", -] +default = [ "std" ] std = [ "codec/std", + "scale-info/std", "serde/std", "sp-application-crypto/std", "sp-core/std", "sp-runtime/std", "sp-std/std", - "scale-info/std", ] # Serde support without relying on std features. diff --git a/primitives/tracing/Cargo.toml b/primitives/tracing/Cargo.toml index 1ef0a0e73ac14..106e3a725cd06 100644 --- a/primitives/tracing/Cargo.toml +++ b/primitives/tracing/Cargo.toml @@ -29,13 +29,13 @@ tracing-subscriber = { version = "0.2.25", optional = true, features = [ ] } [features] -default = ["std"] -with-tracing = ["codec/derive", "codec/full"] +default = [ "std" ] +with-tracing = [ "codec/derive", "codec/full" ] std = [ - "with-tracing", - "tracing/std", - "tracing-core/std", "codec/std", "sp-std/std", + "tracing-core/std", "tracing-subscriber", + "tracing/std", + "with-tracing", ] diff --git a/primitives/transaction-pool/Cargo.toml b/primitives/transaction-pool/Cargo.toml index d65db6a1d32fe..cef4a908cc31a 100644 --- a/primitives/transaction-pool/Cargo.toml +++ b/primitives/transaction-pool/Cargo.toml @@ -19,7 +19,4 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../runtime" [features] default = [ "std" ] -std = [ - "sp-api/std", - "sp-runtime/std", -] +std = [ "sp-api/std", "sp-runtime/std" ] diff --git a/primitives/transaction-storage-proof/Cargo.toml b/primitives/transaction-storage-proof/Cargo.toml index b687f63c2fe2d..5854eb78a4b75 100644 --- a/primitives/transaction-storage-proof/Cargo.toml +++ b/primitives/transaction-storage-proof/Cargo.toml @@ -28,9 +28,9 @@ std = [ "async-trait", "codec/std", "scale-info/std", + "sp-core/std", "sp-inherents/std", "sp-runtime/std", "sp-std/std", "sp-trie/std", - "sp-core/std" ] diff --git a/primitives/trie/Cargo.toml b/primitives/trie/Cargo.toml index 546d6786fc632..5b6877592c315 100644 --- a/primitives/trie/Cargo.toml +++ b/primitives/trie/Cargo.toml @@ -43,23 +43,23 @@ trie-standardmap = "0.16.0" sp-runtime = { version = "24.0.0", path = "../runtime" } [features] -default = ["std"] +default = [ "std" ] std = [ "ahash", "codec/std", - "hashbrown", "hash-db/std", + "hashbrown", "lazy_static", - "schnellru", "memory-db/std", "nohash-hasher", "parking_lot", "scale-info/std", + "schnellru", "sp-core/std", + "sp-runtime/std", "sp-std/std", "thiserror", "tracing", "trie-db/std", "trie-root/std", - "sp-runtime/std" ] diff --git a/primitives/version/Cargo.toml b/primitives/version/Cargo.toml index fc59a367ba385..f53a1e2e0c1a4 100644 --- a/primitives/version/Cargo.toml +++ b/primitives/version/Cargo.toml @@ -26,7 +26,7 @@ sp-std = { version = "8.0.0", default-features = false, path = "../std" } sp-version-proc-macro = { version = "8.0.0", default-features = false, path = "proc-macro" } [features] -default = ["std"] +default = [ "std" ] std = [ "codec/std", "impl-serde/std", @@ -39,8 +39,4 @@ std = [ ] # Serde support without relying on std features. -serde = [ - "dep:serde", - "impl-serde", - "sp-runtime/serde", -] +serde = [ "dep:serde", "impl-serde", "sp-runtime/serde" ] diff --git a/primitives/wasm-interface/Cargo.toml b/primitives/wasm-interface/Cargo.toml index 50efd6d9d22d7..cac78fc2521be 100644 --- a/primitives/wasm-interface/Cargo.toml +++ b/primitives/wasm-interface/Cargo.toml @@ -22,6 +22,6 @@ anyhow = { version = "1.0.68", optional = true } sp-std = { version = "8.0.0", default-features = false, path = "../std" } [features] -default = ["std"] -std = ["codec/std", "log", "sp-std/std", "wasmtime"] -wasmtime = ["dep:wasmtime", "anyhow"] +default = [ "std" ] +std = [ "codec/std", "log", "sp-std/std", "wasmtime" ] +wasmtime = [ "anyhow", "dep:wasmtime" ] diff --git a/primitives/weights/Cargo.toml b/primitives/weights/Cargo.toml index 05fc58a10e105..0ee32fbd8d6ea 100644 --- a/primitives/weights/Cargo.toml +++ b/primitives/weights/Cargo.toml @@ -31,11 +31,11 @@ std = [ "sp-arithmetic/std", "sp-core/std", "sp-debug-derive/std", - "sp-std/std" + "sp-std/std", ] # By default some types have documentation, `full-metadata-docs` allows to add documentation to # more types in the metadata. -full-metadata-docs = ["scale-info/docs"] +full-metadata-docs = [ "scale-info/docs" ] # Serde support without relying on std features. serde = [ diff --git a/scripts/ci/gitlab/pipeline/test.yml b/scripts/ci/gitlab/pipeline/test.yml index 61c1aa876f306..71ae5105a61d8 100644 --- a/scripts/ci/gitlab/pipeline/test.yml +++ b/scripts/ci/gitlab/pipeline/test.yml @@ -58,6 +58,17 @@ cargo-fmt: - cargo +nightly fmt --all -- --check - rusty-cachier cache upload +cargo-fmt-manifest: + stage: test + extends: + - .docker-env + - .test-refs + script: + - cargo install zepter --locked --version 0.10.0 -q -f --no-default-features && zepter --version + - echo "👉 Hello developer! If you see this CI check failing then it means that one of the your changes in a Cargo.toml file introduced ill-formatted or unsorted features. Please take a look at 'docs/STYLE_GUIDE.md#manifest-formatting' to find out more." + - zepter format features --check + allow_failure: true # Experimental + cargo-clippy: stage: test # this is an artificial job dependency, for pipeline optimization using GitLab's DAGs diff --git a/test-utils/cli/Cargo.toml b/test-utils/cli/Cargo.toml index 314fe7ad568f2..20418d602886d 100644 --- a/test-utils/cli/Cargo.toml +++ b/test-utils/cli/Cargo.toml @@ -26,4 +26,4 @@ sc-service = { path = "../../client/service" } futures = "0.3.28" [features] -try-runtime = ["node-cli/try-runtime"] +try-runtime = [ "node-cli/try-runtime" ] diff --git a/test-utils/runtime/Cargo.toml b/test-utils/runtime/Cargo.toml index 43ab0da98bd6a..fe517843aff73 100644 --- a/test-utils/runtime/Cargo.toml +++ b/test-utils/runtime/Cargo.toml @@ -65,47 +65,45 @@ json-patch = { version = "1.0.0", default-features = false } substrate-wasm-builder = { version = "5.0.0-dev", path = "../../utils/wasm-builder", optional = true } [features] -default = [ - "std", -] +default = [ "std" ] std = [ "array-bytes", - "sp-genesis-builder/std", + "codec/std", + "frame-executive/std", + "frame-support/std", + "frame-system-rpc-runtime-api/std", + "frame-system/std", + "log/std", + "pallet-babe/std", + "pallet-balances/std", + "pallet-timestamp/std", + "sc-executor/std", + "sc-service", + "scale-info/std", + "sp-api/std", "sp-application-crypto/std", + "sp-block-builder/std", "sp-consensus-aura/std", "sp-consensus-babe/std", - "sp-block-builder/std", - "codec/std", - "scale-info/std", + "sp-consensus-grandpa/std", + "sp-core/std", + "sp-externalities/std", + "sp-genesis-builder/std", "sp-inherents/std", + "sp-io/std", "sp-keyring", - "log/std", "sp-offchain/std", - "sp-core/std", - "sp-std/std", - "sp-io/std", - "frame-support/std", - "sp-version/std", - "sp-session/std", - "sp-api/std", "sp-runtime/std", - "sp-externalities/std", + "sp-session/std", "sp-state-machine/std", - "pallet-babe/std", - "pallet-timestamp/std", - "pallet-balances/std", - "frame-system-rpc-runtime-api/std", - "frame-system/std", - "sc-service", - "sp-consensus-grandpa/std", - "sp-trie/std", + "sp-std/std", + "sp-tracing/std", "sp-transaction-pool/std", - "trie-db/std", + "sp-trie/std", + "sp-version/std", "substrate-wasm-builder", - "frame-executive/std", - "sc-executor/std", - "sp-tracing/std" + "trie-db/std", ] # Special feature to disable logging disable-logging = [ "sp-api/disable-logging" ] diff --git a/utils/binary-merkle-tree/Cargo.toml b/utils/binary-merkle-tree/Cargo.toml index 4b7b9e53ef872..f619a5ab5503b 100644 --- a/utils/binary-merkle-tree/Cargo.toml +++ b/utils/binary-merkle-tree/Cargo.toml @@ -20,13 +20,6 @@ sp-core = { version = "21.0.0", path = "../../primitives/core" } sp-runtime = { version = "24.0.0", path = "../../primitives/runtime" } [features] -debug = ["array-bytes", "log"] -default = ["debug", "std"] -std = [ - - "log/std", - - "hash-db/std", - "sp-core/std", - "sp-runtime/std" -] +debug = [ "array-bytes", "log" ] +default = [ "debug", "std" ] +std = [ "hash-db/std", "log/std", "sp-core/std", "sp-runtime/std" ] diff --git a/utils/frame/benchmarking-cli/Cargo.toml b/utils/frame/benchmarking-cli/Cargo.toml index 0ebfbc3cdaf31..4b142c205c4d7 100644 --- a/utils/frame/benchmarking-cli/Cargo.toml +++ b/utils/frame/benchmarking-cli/Cargo.toml @@ -56,13 +56,13 @@ sp-wasm-interface = { version = "14.0.0", path = "../../../primitives/wasm-inter gethostname = "0.2.3" [features] -default = ["rocksdb"] +default = [ "rocksdb" ] runtime-benchmarks = [ - "sc-client-db/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", + "sc-client-db/runtime-benchmarks", "sc-service/runtime-benchmarks", - "sp-runtime/runtime-benchmarks" + "sp-runtime/runtime-benchmarks", ] -rocksdb = ["sc-cli/rocksdb", "sc-client-db/rocksdb"] +rocksdb = [ "sc-cli/rocksdb", "sc-client-db/rocksdb" ] diff --git a/utils/frame/try-runtime/cli/Cargo.toml b/utils/frame/try-runtime/cli/Cargo.toml index 84b9460d137e0..2d8d9b476a450 100644 --- a/utils/frame/try-runtime/cli/Cargo.toml +++ b/utils/frame/try-runtime/cli/Cargo.toml @@ -53,8 +53,8 @@ tokio = "1.27.0" [features] try-runtime = [ - "sp-debug-derive/force-debug", "frame-try-runtime/try-runtime", + "sp-debug-derive/force-debug", "sp-runtime/try-runtime", - "substrate-cli-test-utils/try-runtime" + "substrate-cli-test-utils/try-runtime", ]