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
+2 -2
View File
@@ -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" ]
+2 -2
View File
@@ -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"
+3 -3
View File
@@ -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 = []
@@ -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"
]
+3 -3
View File
@@ -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]
+1 -1
View File
@@ -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]