Format and Sort features in Cargo.toml files (#14803)

* CI: Add feature sorting check

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Sort all features

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add some mistakes

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Revert "Add some mistakes"

This reverts commit b2b1099f979f6decb22d09b46689c1554bb72e81.

* CI job naming

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add oneliner formatting

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Explain tool

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Use latest version

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Better erorr message

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Format after master merge

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Use --check option

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Messed up the merge commit...

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Oliver Tale-Yazdi
2023-08-23 16:21:52 +02:00
committed by GitHub
parent 878c562cd4
commit 8b9455465b
161 changed files with 1093 additions and 1171 deletions
+14 -17
View File
@@ -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",
"sp-core/std",
"sp-externalities",
"sp-std/std",
"sp-runtime/std",
"sp-state-machine/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-core/std",
"sp-externalities",
"sp-externalities?/std",
"sp-test-primitives/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",
"thiserror",
]
# 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" ]
@@ -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 = []
@@ -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
+3 -6
View File
@@ -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"
@@ -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",
@@ -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" ]
@@ -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",
@@ -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.
@@ -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",
]
@@ -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.
@@ -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",
@@ -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" ]
+46 -46
View File
@@ -73,67 +73,67 @@ harness = false
bench = false
[features]
default = ["std"]
default = [ "std" ]
std = [
"arrayvec/std",
"merlin/std",
"full_crypto",
"log/std",
"thiserror",
"lazy_static",
"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",
"arrayvec/std",
"bandersnatch_vrfs/getrandom",
"blake2/std",
"bounded-collections/std",
"bs58/std",
"substrate-bip39",
"tiny-bip39",
"rand",
"schnorrkel/std",
"regex",
"secp256k1/std",
"secp256k1/global-context",
"sp-core-hashing/std",
"sp-debug-derive/std",
"sp-storage/std",
"sp-runtime-interface/std",
"ss58-registry/std",
"zeroize/alloc",
"secrecy/alloc",
"codec/std",
"dyn-clonable",
"ed25519-zebra/std",
"full_crypto",
"futures",
"futures/thread-pool",
"hash-db/std",
"hash256-std-hasher/std",
"impl-serde/std",
"lazy_static",
"libsecp256k1/std",
"dyn-clonable",
"log/std",
"merlin/std",
"parking_lot",
"primitive-types/byteorder",
"primitive-types/rustc-hex",
"primitive-types/serde",
"primitive-types/std",
"rand",
"regex",
"scale-info/std",
"schnorrkel/std",
"secp256k1/global-context",
"secp256k1/std",
"secrecy/alloc",
"serde/std",
"sp-core-hashing/std",
"sp-debug-derive/std",
"sp-externalities/std",
"sp-runtime-interface/std",
"sp-std/std",
"sp-storage/std",
"ss58-registry/std",
"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" ]
+2 -2
View File
@@ -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",
+13 -13
View File
@@ -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",
]
@@ -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" ]
@@ -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" ]
+17 -23
View File
@@ -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",
"libsecp256k1",
"secp256k1",
"sp-runtime-interface/std",
"sp-tracing/std",
"tracing/std",
"tracing-core/std",
"log",
"ed25519-dalek",
"sp-keystore/std"
"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",
"sp-trie/std",
"tracing-core/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" ]
+1 -1
View File
@@ -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" ]
+4 -8
View File
@@ -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" ]
@@ -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" ]
+2 -7
View File
@@ -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" ]
@@ -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",
+2 -2
View File
@@ -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" ]
@@ -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
@@ -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",
]
@@ -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",
]
+5 -5
View File
@@ -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-std/std",
"sp-weights/std",
"sp-api/std",
"sp-state-machine/std",
"sp-tracing/std"
"sp-std/std",
"sp-tracing/std",
"sp-weights/std",
]
# Serde support without relying on std features.
+1 -1
View File
@@ -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"
]
+3 -5
View File
@@ -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" ]
@@ -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",
]
+16 -17
View File
@@ -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",
"sp-core/std",
"sp-runtime/std",
"sp-runtime-interface/std",
"sp-std/std",
"sha2",
"sp-api/std",
"sp-application-crypto/std",
"sp-core/std",
"sp-externalities/std",
"sp-runtime-interface/std",
"sp-runtime/std",
"sp-std/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",
]
+1 -1
View File
@@ -14,5 +14,5 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]
[features]
default = ["std"]
default = [ "std" ]
std = []
+1 -4
View File
@@ -32,7 +32,4 @@ std = [
]
# Serde support without relying on std features.
serde = [
"dep:serde",
"impl-serde",
]
serde = [ "dep:serde", "impl-serde" ]
@@ -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.
+5 -5
View File
@@ -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",
]
@@ -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" ]
@@ -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"
]
+4 -4
View File
@@ -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"
]
+2 -6
View File
@@ -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" ]
@@ -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" ]
+2 -2
View File
@@ -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 = [