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
+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",