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
This commit is contained in:
Shawn Tabrizi
2022-05-05 12:43:52 +01:00
committed by GitHub
parent f9e4e87efa
commit a4bb42d85c
15 changed files with 25 additions and 1 deletions
+1
View File
@@ -43,6 +43,7 @@ std = [
"pallet-beefy/std", "pallet-beefy/std",
"pallet-mmr/std", "pallet-mmr/std",
"pallet-session/std", "pallet-session/std",
"scale-info/std",
"serde", "serde",
"sp-core/std", "sp-core/std",
"sp-io/std", "sp-io/std",
+3
View File
@@ -44,8 +44,11 @@ std = [
"scale-info/std", "scale-info/std",
"serde", "serde",
"sp-api/std", "sp-api/std",
"sp-application-crypto/std",
"sp-io/std",
"sp-runtime-interface/std", "sp-runtime-interface/std",
"sp-runtime/std", "sp-runtime/std",
"sp-std/std", "sp-std/std",
"sp-storage/std",
] ]
runtime-benchmarks = [] runtime-benchmarks = []
@@ -35,8 +35,10 @@ std = [
"codec/std", "codec/std",
"frame-support/std", "frame-support/std",
"frame-system/std", "frame-system/std",
"scale-info/std",
"sp-arithmetic/std", "sp-arithmetic/std",
"sp-npos-elections/std", "sp-npos-elections/std",
"sp-runtime/std",
"sp-std/std", "sp-std/std",
] ]
runtime-benchmarks = [] runtime-benchmarks = []
@@ -26,6 +26,7 @@ default = ["std"]
std = [ std = [
"codec/std", "codec/std",
"frame-benchmarking/std", "frame-benchmarking/std",
"frame-election-provider-support/std",
"frame-system/std", "frame-system/std",
"sp-npos-elections/std", "sp-npos-elections/std",
"sp-runtime/std", "sp-runtime/std",
+1
View File
@@ -43,6 +43,7 @@ std = [
"frame-system/std", "frame-system/std",
"scale-info/std", "scale-info/std",
"sp-core/std", "sp-core/std",
"sp-io/std",
"sp-runtime/std", "sp-runtime/std",
"sp-std/std", "sp-std/std",
"sp-tracing/std", "sp-tracing/std",
+1
View File
@@ -55,6 +55,7 @@ std = [
"sp-application-crypto/std", "sp-application-crypto/std",
"sp-core/std", "sp-core/std",
"sp-finality-grandpa/std", "sp-finality-grandpa/std",
"sp-io/std",
"sp-runtime/std", "sp-runtime/std",
"sp-session/std", "sp-session/std",
"sp-staking/std", "sp-staking/std",
+1
View File
@@ -36,6 +36,7 @@ std = [
"frame-system/std", "frame-system/std",
"scale-info/std", "scale-info/std",
"serde", "serde",
"sp-core/std",
"sp-io/std", "sp-io/std",
"sp-runtime/std", "sp-runtime/std",
"sp-std/std", "sp-std/std",
@@ -41,6 +41,7 @@ std = [
"frame-system/std", "frame-system/std",
"pallet-session/std", "pallet-session/std",
"pallet-staking/std", "pallet-staking/std",
"rand/std",
"sp-runtime/std", "sp-runtime/std",
"sp-session/std", "sp-session/std",
"sp-std/std", "sp-std/std",
@@ -45,4 +45,5 @@ std = [
"sp-io/std", "sp-io/std",
"sp-runtime/std", "sp-runtime/std",
"sp-std/std", "sp-std/std",
"sp-transaction-storage-proof/std",
] ]
+1
View File
@@ -35,6 +35,7 @@ std = [
"frame-benchmarking/std", "frame-benchmarking/std",
"frame-support/std", "frame-support/std",
"frame-system/std", "frame-system/std",
"log/std",
"scale-info/std", "scale-info/std",
"sp-runtime/std", "sp-runtime/std",
"sp-std/std", "sp-std/std",
+1
View File
@@ -34,6 +34,7 @@ std = [
"frame-support/std", "frame-support/std",
"frame-system/std", "frame-system/std",
"scale-info/std", "scale-info/std",
"sp-core/std",
"sp-io/std", "sp-io/std",
"sp-runtime/std", "sp-runtime/std",
"sp-std/std", "sp-std/std",
+1
View File
@@ -35,6 +35,7 @@ std = [
"codec/std", "codec/std",
"frame-support/std", "frame-support/std",
"frame-system/std", "frame-system/std",
"log/std",
"scale-info/std", "scale-info/std",
"sp-runtime/std", "sp-runtime/std",
"sp-std/std", "sp-std/std",
@@ -25,6 +25,7 @@ sp-std = { version = "4.0.0", default-features = false, path = "../../std" }
default = ["std"] default = ["std"]
std = [ std = [
"blake2/std", "blake2/std",
"byteorder/std",
"sha2/std", "sha2/std",
"sha3/std", "sha3/std",
"sp-std/std", "sp-std/std",
+5 -1
View File
@@ -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"] } schnorrkel = { version = "0.9.1", default-features = false, features = ["preaudit_deprecated", "u64_backend"] }
serde = { version = "1.0", optional = true } serde = { version = "1.0", optional = true }
thiserror = "1.0" 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" } sp-externalities = { version = "0.12.0", default-features = false, path = "../externalities" }
[dev-dependencies] [dev-dependencies]
@@ -31,6 +31,10 @@ rand_chacha = "0.2.2"
[features] [features]
default = ["std"] default = ["std"]
std = [ std = [
"codec/std",
"merlin/std",
"schnorrkel/std", "schnorrkel/std",
"serde", "serde",
"sp-core/std",
"sp-externalities/std",
] ]
@@ -24,6 +24,10 @@ default = [
"std", "std",
] ]
std = [ std = [
"codec/std",
"parity-util-mem/std",
"serde", "serde",
"sp-application-crypto/std", "sp-application-crypto/std",
"sp-core/std",
"sp-runtime/std",
] ]