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
+12 -12
View File
@@ -22,18 +22,18 @@ pallet-example-split = { default-features = false, path = "./split" }
[features]
default = [ "std" ]
std = [
"pallet-example-basic/std",
"pallet-default-config-example/std",
"pallet-example-offchain-worker/std",
"pallet-example-kitchensink/std",
"pallet-dev-mode/std",
"pallet-example-split/std",
"pallet-default-config-example/std",
"pallet-dev-mode/std",
"pallet-example-basic/std",
"pallet-example-kitchensink/std",
"pallet-example-offchain-worker/std",
"pallet-example-split/std",
]
try-runtime = [
"pallet-example-basic/try-runtime",
"pallet-default-config-example/try-runtime",
"pallet-example-offchain-worker/try-runtime",
"pallet-example-kitchensink/try-runtime",
"pallet-dev-mode/try-runtime",
"pallet-example-split/try-runtime",
"pallet-default-config-example/try-runtime",
"pallet-dev-mode/try-runtime",
"pallet-example-basic/try-runtime",
"pallet-example-kitchensink/try-runtime",
"pallet-example-offchain-worker/try-runtime",
"pallet-example-split/try-runtime",
]
+4 -4
View File
@@ -28,7 +28,7 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../../primiti
sp-core = { version = "21.0.0", default-features = false, path = "../../../primitives/core" }
[features]
default = ["std"]
default = [ "std" ]
std = [
"codec/std",
"frame-benchmarking?/std",
@@ -37,21 +37,21 @@ std = [
"log/std",
"pallet-balances/std",
"scale-info/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
"sp-core/std"
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"sp-runtime/runtime-benchmarks"
"sp-runtime/runtime-benchmarks",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"pallet-balances/try-runtime",
"sp-runtime/try-runtime"
"sp-runtime/try-runtime",
]
@@ -24,7 +24,7 @@ sp-runtime = { default-features = false, path = "../../../primitives/runtime" }
sp-std = { default-features = false, path = "../../../primitives/std" }
[features]
default = ["std"]
default = [ "std" ]
std = [
"codec/std",
"frame-support/std",
@@ -38,5 +38,5 @@ std = [
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"sp-runtime/try-runtime"
"sp-runtime/try-runtime",
]
+3 -3
View File
@@ -27,7 +27,7 @@ sp-std = { version = "8.0.0", default-features = false, path = "../../../primiti
sp-core = { version = "21.0.0", default-features = false, path = "../../../primitives/core" }
[features]
default = ["std"]
default = [ "std" ]
std = [
"codec/std",
"frame-support/std",
@@ -35,14 +35,14 @@ std = [
"log/std",
"pallet-balances/std",
"scale-info/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
"sp-core/std"
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"pallet-balances/try-runtime",
"sp-runtime/try-runtime"
"sp-runtime/try-runtime",
]
@@ -31,34 +31,30 @@ pallet-balances = { version = "4.0.0-dev", default-features = false, path = "../
sp-core = { version = "21.0.0", default-features = false, path = "../../../primitives/core" }
[features]
default = ["std"]
default = [ "std" ]
std = [
"codec/std",
"log/std",
"scale-info/std",
"frame-benchmarking?/std",
"frame-support/std",
"frame-system/std",
"log/std",
"pallet-balances/std",
"scale-info/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
"frame-benchmarking?/std",
"pallet-balances/std",
"sp-core/std"
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"sp-runtime/runtime-benchmarks"
"sp-runtime/runtime-benchmarks",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"pallet-balances/try-runtime",
"sp-runtime/try-runtime"
"sp-runtime/try-runtime",
]
@@ -26,7 +26,7 @@ sp-runtime = { version = "24.0.0", default-features = false, path = "../../../pr
sp-std = { version = "8.0.0", default-features = false, path = "../../../primitives/std" }
[features]
default = ["std"]
default = [ "std" ]
std = [
"codec/std",
"frame-support/std",
@@ -36,12 +36,12 @@ std = [
"scale-info/std",
"sp-core/std",
"sp-io/std",
"sp-keystore/std",
"sp-runtime/std",
"sp-std/std"
"sp-keystore/std",
"sp-runtime/std",
"sp-std/std",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"sp-runtime/try-runtime"
"sp-runtime/try-runtime",
]
+7 -13
View File
@@ -29,27 +29,21 @@ frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional
sp-core = { version = "21.0.0", default-features = false, path = "../../../primitives/core" }
[features]
default = ["std"]
default = [ "std" ]
std = [
"codec/std",
"log/std",
"scale-info/std",
"frame-benchmarking?/std",
"frame-support/std",
"frame-system/std",
"log/std",
"scale-info/std",
"sp-core/std",
"sp-io/std",
"sp-std/std",
"frame-benchmarking?/std",
"sp-core/std"
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks"
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime"
"frame-system/runtime-benchmarks",
]
try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime" ]