From a4bb42d85cee9de6338654b80ba3daf6462357c1 Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Thu, 5 May 2022 12:43:52 +0100 Subject: [PATCH] Backfill missing TOML features (#11351) * only check std * add default-features=false * Revert "add default-features=false" This reverts commit bc9453757a1df670f418a2d57ee4ce203425ab1b. * missing features only to non-optional --- substrate/frame/beefy-mmr/Cargo.toml | 1 + substrate/frame/benchmarking/Cargo.toml | 3 +++ substrate/frame/election-provider-support/Cargo.toml | 2 ++ .../frame/election-provider-support/benchmarking/Cargo.toml | 1 + substrate/frame/executive/Cargo.toml | 1 + substrate/frame/grandpa/Cargo.toml | 1 + substrate/frame/remark/Cargo.toml | 1 + substrate/frame/session/benchmarking/Cargo.toml | 1 + substrate/frame/transaction-storage/Cargo.toml | 1 + substrate/frame/uniques/Cargo.toml | 1 + substrate/frame/utility/Cargo.toml | 1 + substrate/frame/vesting/Cargo.toml | 1 + substrate/primitives/core/hashing/Cargo.toml | 1 + substrate/primitives/keystore/Cargo.toml | 6 +++++- substrate/primitives/test-primitives/Cargo.toml | 4 ++++ 15 files changed, 25 insertions(+), 1 deletion(-) diff --git a/substrate/frame/beefy-mmr/Cargo.toml b/substrate/frame/beefy-mmr/Cargo.toml index bdec17b858..6affcd60cc 100644 --- a/substrate/frame/beefy-mmr/Cargo.toml +++ b/substrate/frame/beefy-mmr/Cargo.toml @@ -43,6 +43,7 @@ std = [ "pallet-beefy/std", "pallet-mmr/std", "pallet-session/std", + "scale-info/std", "serde", "sp-core/std", "sp-io/std", diff --git a/substrate/frame/benchmarking/Cargo.toml b/substrate/frame/benchmarking/Cargo.toml index d1d835e0d1..c070e64d37 100644 --- a/substrate/frame/benchmarking/Cargo.toml +++ b/substrate/frame/benchmarking/Cargo.toml @@ -44,8 +44,11 @@ std = [ "scale-info/std", "serde", "sp-api/std", + "sp-application-crypto/std", + "sp-io/std", "sp-runtime-interface/std", "sp-runtime/std", "sp-std/std", + "sp-storage/std", ] runtime-benchmarks = [] diff --git a/substrate/frame/election-provider-support/Cargo.toml b/substrate/frame/election-provider-support/Cargo.toml index 8bc92f878c..bfddd25a1f 100644 --- a/substrate/frame/election-provider-support/Cargo.toml +++ b/substrate/frame/election-provider-support/Cargo.toml @@ -35,8 +35,10 @@ std = [ "codec/std", "frame-support/std", "frame-system/std", + "scale-info/std", "sp-arithmetic/std", "sp-npos-elections/std", + "sp-runtime/std", "sp-std/std", ] runtime-benchmarks = [] diff --git a/substrate/frame/election-provider-support/benchmarking/Cargo.toml b/substrate/frame/election-provider-support/benchmarking/Cargo.toml index 14afff1aeb..00037d460d 100644 --- a/substrate/frame/election-provider-support/benchmarking/Cargo.toml +++ b/substrate/frame/election-provider-support/benchmarking/Cargo.toml @@ -26,6 +26,7 @@ default = ["std"] std = [ "codec/std", "frame-benchmarking/std", + "frame-election-provider-support/std", "frame-system/std", "sp-npos-elections/std", "sp-runtime/std", diff --git a/substrate/frame/executive/Cargo.toml b/substrate/frame/executive/Cargo.toml index b60cffa478..ed3c5282fc 100644 --- a/substrate/frame/executive/Cargo.toml +++ b/substrate/frame/executive/Cargo.toml @@ -43,6 +43,7 @@ std = [ "frame-system/std", "scale-info/std", "sp-core/std", + "sp-io/std", "sp-runtime/std", "sp-std/std", "sp-tracing/std", diff --git a/substrate/frame/grandpa/Cargo.toml b/substrate/frame/grandpa/Cargo.toml index b1c2da09b5..ea1ec173d8 100644 --- a/substrate/frame/grandpa/Cargo.toml +++ b/substrate/frame/grandpa/Cargo.toml @@ -55,6 +55,7 @@ std = [ "sp-application-crypto/std", "sp-core/std", "sp-finality-grandpa/std", + "sp-io/std", "sp-runtime/std", "sp-session/std", "sp-staking/std", diff --git a/substrate/frame/remark/Cargo.toml b/substrate/frame/remark/Cargo.toml index 9759c37bfe..573502779c 100644 --- a/substrate/frame/remark/Cargo.toml +++ b/substrate/frame/remark/Cargo.toml @@ -36,6 +36,7 @@ std = [ "frame-system/std", "scale-info/std", "serde", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", diff --git a/substrate/frame/session/benchmarking/Cargo.toml b/substrate/frame/session/benchmarking/Cargo.toml index 0449f3f674..1cce8fec02 100644 --- a/substrate/frame/session/benchmarking/Cargo.toml +++ b/substrate/frame/session/benchmarking/Cargo.toml @@ -41,6 +41,7 @@ std = [ "frame-system/std", "pallet-session/std", "pallet-staking/std", + "rand/std", "sp-runtime/std", "sp-session/std", "sp-std/std", diff --git a/substrate/frame/transaction-storage/Cargo.toml b/substrate/frame/transaction-storage/Cargo.toml index 47cf69cf73..99bea1cd36 100644 --- a/substrate/frame/transaction-storage/Cargo.toml +++ b/substrate/frame/transaction-storage/Cargo.toml @@ -45,4 +45,5 @@ std = [ "sp-io/std", "sp-runtime/std", "sp-std/std", + "sp-transaction-storage-proof/std", ] diff --git a/substrate/frame/uniques/Cargo.toml b/substrate/frame/uniques/Cargo.toml index 3f78df96b3..1e6ca2ce68 100644 --- a/substrate/frame/uniques/Cargo.toml +++ b/substrate/frame/uniques/Cargo.toml @@ -35,6 +35,7 @@ std = [ "frame-benchmarking/std", "frame-support/std", "frame-system/std", + "log/std", "scale-info/std", "sp-runtime/std", "sp-std/std", diff --git a/substrate/frame/utility/Cargo.toml b/substrate/frame/utility/Cargo.toml index 0c307020b5..066682e0e3 100644 --- a/substrate/frame/utility/Cargo.toml +++ b/substrate/frame/utility/Cargo.toml @@ -34,6 +34,7 @@ std = [ "frame-support/std", "frame-system/std", "scale-info/std", + "sp-core/std", "sp-io/std", "sp-runtime/std", "sp-std/std", diff --git a/substrate/frame/vesting/Cargo.toml b/substrate/frame/vesting/Cargo.toml index d8cb200caf..f73a7af9e6 100644 --- a/substrate/frame/vesting/Cargo.toml +++ b/substrate/frame/vesting/Cargo.toml @@ -35,6 +35,7 @@ std = [ "codec/std", "frame-support/std", "frame-system/std", + "log/std", "scale-info/std", "sp-runtime/std", "sp-std/std", diff --git a/substrate/primitives/core/hashing/Cargo.toml b/substrate/primitives/core/hashing/Cargo.toml index b3ce080f7a..c83e48e563 100644 --- a/substrate/primitives/core/hashing/Cargo.toml +++ b/substrate/primitives/core/hashing/Cargo.toml @@ -25,6 +25,7 @@ sp-std = { version = "4.0.0", default-features = false, path = "../../std" } default = ["std"] std = [ "blake2/std", + "byteorder/std", "sha2/std", "sha3/std", "sp-std/std", diff --git a/substrate/primitives/keystore/Cargo.toml b/substrate/primitives/keystore/Cargo.toml index 551626adbc..3c3b7933c5 100644 --- a/substrate/primitives/keystore/Cargo.toml +++ b/substrate/primitives/keystore/Cargo.toml @@ -21,7 +21,7 @@ parking_lot = { version = "0.12.0", default-features = false } schnorrkel = { version = "0.9.1", default-features = false, features = ["preaudit_deprecated", "u64_backend"] } serde = { version = "1.0", optional = true } thiserror = "1.0" -sp-core = { version = "6.0.0", path = "../core" } +sp-core = { version = "6.0.0", default-features = false, path = "../core" } sp-externalities = { version = "0.12.0", default-features = false, path = "../externalities" } [dev-dependencies] @@ -31,6 +31,10 @@ rand_chacha = "0.2.2" [features] default = ["std"] std = [ + "codec/std", + "merlin/std", "schnorrkel/std", "serde", + "sp-core/std", + "sp-externalities/std", ] diff --git a/substrate/primitives/test-primitives/Cargo.toml b/substrate/primitives/test-primitives/Cargo.toml index 1333c340a6..2a20addf66 100644 --- a/substrate/primitives/test-primitives/Cargo.toml +++ b/substrate/primitives/test-primitives/Cargo.toml @@ -24,6 +24,10 @@ default = [ "std", ] std = [ + "codec/std", + "parity-util-mem/std", "serde", "sp-application-crypto/std", + "sp-core/std", + "sp-runtime/std", ]