From 315cc0fd2eafa33d05d25a44e6292a9ad4cb2b85 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 1 Feb 2024 13:23:37 +0100 Subject: [PATCH] taplo-fmt --- claims/Cargo.toml | 42 ++++++++++---------- enclave-bridge/Cargo.toml | 50 ++++++++++++------------ parentchain/Cargo.toml | 28 +++++++------- primitives/claims/Cargo.toml | 18 ++++----- primitives/common/Cargo.toml | 14 +++---- primitives/enclave-bridge/Cargo.toml | 20 +++++----- primitives/sidechain/Cargo.toml | 18 ++++----- primitives/teeracle/Cargo.toml | 4 +- primitives/teerex/Cargo.toml | 20 +++++----- primitives/xcm-transactor/Cargo.toml | 14 +++---- sidechain/Cargo.toml | 58 ++++++++++++++-------------- teeracle/Cargo.toml | 46 +++++++++++----------- teerex/Cargo.toml | 46 +++++++++++----------- teerex/sgx-verify/Cargo.toml | 42 ++++++++++---------- test-utils/Cargo.toml | 4 +- xcm-transactor/Cargo.toml | 30 +++++++------- 16 files changed, 227 insertions(+), 227 deletions(-) diff --git a/claims/Cargo.toml b/claims/Cargo.toml index 679f517e..4b8ab548 100644 --- a/claims/Cargo.toml +++ b/claims/Cargo.toml @@ -6,8 +6,8 @@ license = "Apache-2.0" edition = "2021" [dependencies] -parity-scale-codec = { workspace = true } libsecp256k1 = { workspace = true, optional = true } +parity-scale-codec = { workspace = true } rustc-hex = { workspace = true } scale-info = { workspace = true } serde = { workspace = true } @@ -29,32 +29,32 @@ hex-literal = { workspace = true } libsecp256k1 = { workspace = true, features = ["std"] } pallet-balances = { workspace = true, features = ["std"] } pallet-vesting = { workspace = true, features = ["std"] } -serde_json = { workspace = true, features = ["std"]} +serde_json = { workspace = true, features = ["std"] } sp-core = { workspace = true, features = ["std"] } [features] -default = [ "std" ] +default = ["std"] std = [ - "claims-primitives/std", - "frame-support/std", - "frame-system/std", - "pallet-balances/std", - "parity-scale-codec/std", - "rustc-hex/std", - "scale-info/std", - "serde/std", - "serde_derive", - "sp-io/std", - "sp-runtime/std", - "sp-std/std", + "claims-primitives/std", + "frame-support/std", + "frame-system/std", + "pallet-balances/std", + "parity-scale-codec/std", + "rustc-hex/std", + "scale-info/std", + "serde/std", + "serde_derive", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", ] runtime-benchmarks = [ - "frame-benchmarking", - "frame-support/runtime-benchmarks", - "frame-system/runtime-benchmarks", - "libsecp256k1/hmac", - "libsecp256k1/static-context", + "frame-benchmarking", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "libsecp256k1/hmac", + "libsecp256k1/static-context", ] -try-runtime = [ "frame-support/try-runtime" ] +try-runtime = ["frame-support/try-runtime"] diff --git a/enclave-bridge/Cargo.toml b/enclave-bridge/Cargo.toml index a069ac2c..28e16574 100644 --- a/enclave-bridge/Cargo.toml +++ b/enclave-bridge/Cargo.toml @@ -9,8 +9,8 @@ license = "MS-RSL" edition = "2021" [dependencies] -parity-scale-codec = { workspace = true } log = { workspace = true } +parity-scale-codec = { workspace = true } scale-info = { workspace = true } serde = { workspace = true, optional = true } @@ -22,11 +22,11 @@ teerex-primitives = { path = "../primitives/teerex", default-features = false } # substrate dependencies frame-support = { workspace = true } frame-system = { workspace = true } +pallet-timestamp = { workspace = true } sp-core = { workspace = true } sp-io = { workspace = true } sp-runtime = { workspace = true } sp-std = { workspace = true } -pallet-timestamp = { workspace = true } # benchmarking frame-benchmarking = { workspace = true, optional = true } @@ -44,33 +44,33 @@ sp-keyring = { workspace = true } test-utils = { path = "../test-utils" } [features] -default = [ "std" ] +default = ["std"] std = [ - "enclave-bridge-primitives/std", - "frame-support/std", - "frame-system/std", - "log/std", - "pallet-teerex/std", - "pallet-timestamp/std", - "parity-scale-codec/std", - "scale-info/std", - "serde/std", - "sp-core/std", - "sp-io/std", - "sp-runtime/std", - "sp-std/std", - "teerex-primitives/std", + "enclave-bridge-primitives/std", + "frame-support/std", + "frame-system/std", + "log/std", + "pallet-teerex/std", + "pallet-timestamp/std", + "parity-scale-codec/std", + "scale-info/std", + "serde/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", + "teerex-primitives/std", ] runtime-benchmarks = [ - "frame-benchmarking", - "hex-literal", - "pallet-balances", - "pallet-timestamp/runtime-benchmarks", - "test-utils", - "pallet-teerex/runtime-benchmarks" + "frame-benchmarking", + "hex-literal", + "pallet-balances", + "pallet-timestamp/runtime-benchmarks", + "test-utils", + "pallet-teerex/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", - "pallet-teerex/try-runtime" + "frame-support/try-runtime", + "pallet-teerex/try-runtime", ] diff --git a/parentchain/Cargo.toml b/parentchain/Cargo.toml index 9206d91e..75296d88 100644 --- a/parentchain/Cargo.toml +++ b/parentchain/Cargo.toml @@ -9,8 +9,8 @@ license = "Apache-2.0" edition = "2021" [dependencies] -parity-scale-codec = { workspace = true } log = { workspace = true } +parity-scale-codec = { workspace = true } scale-info = { workspace = true } serde = { workspace = true, optional = true } @@ -28,19 +28,19 @@ env_logger = { workspace = true } sp-keyring = { workspace = true } [features] -default = [ "std" ] +default = ["std"] std = [ - "frame-support/std", - "frame-system/std", - "log/std", - "pallet-balances/std", - "parity-scale-codec/std", - "scale-info/std", - "serde/std", - "sp-core/std", - "sp-io/std", - "sp-runtime/std", - "sp-std/std", + "frame-support/std", + "frame-system/std", + "log/std", + "pallet-balances/std", + "parity-scale-codec/std", + "scale-info/std", + "serde/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", ] -try-runtime = [ "frame-support/try-runtime" ] +try-runtime = ["frame-support/try-runtime"] diff --git a/primitives/claims/Cargo.toml b/primitives/claims/Cargo.toml index 8534a31d..65523f7e 100644 --- a/primitives/claims/Cargo.toml +++ b/primitives/claims/Cargo.toml @@ -19,14 +19,14 @@ sp-runtime = { workspace = true } sp-std = { workspace = true } [features] -default = [ "std" ] -serde_derive = [ "serde" ] +default = ["std"] +serde_derive = ["serde"] std = [ - "parity-scale-codec/std", - "rustc-hex/std", - "scale-info/std", - "serde/std", - "sp-io/std", - "sp-runtime/std", - "sp-std/std", + "parity-scale-codec/std", + "rustc-hex/std", + "scale-info/std", + "serde/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", ] diff --git a/primitives/common/Cargo.toml b/primitives/common/Cargo.toml index bc4b12e6..79a8b27f 100644 --- a/primitives/common/Cargo.toml +++ b/primitives/common/Cargo.toml @@ -8,8 +8,8 @@ license = "Apache-2.0" edition = "2021" [dependencies] -parity-scale-codec = { workspace = true } derive_more = { workspace = true } +parity-scale-codec = { workspace = true } scale-info = { workspace = true } # substrate deps @@ -18,11 +18,11 @@ sp-runtime = { workspace = true } sp-std = { workspace = true } [features] -default = [ "std" ] +default = ["std"] std = [ - "parity-scale-codec/std", - "scale-info/std", - "sp-core/std", - "sp-runtime/std", - "sp-std/std", + "parity-scale-codec/std", + "scale-info/std", + "sp-core/std", + "sp-runtime/std", + "sp-std/std", ] diff --git a/primitives/enclave-bridge/Cargo.toml b/primitives/enclave-bridge/Cargo.toml index 2427b25d..f89502e7 100644 --- a/primitives/enclave-bridge/Cargo.toml +++ b/primitives/enclave-bridge/Cargo.toml @@ -8,9 +8,9 @@ license = "Apache-2.0" edition = "2021" [dependencies] -parity-scale-codec = { workspace = true } common-primitives = { path = "../common", default-features = false } log = { workspace = true } +parity-scale-codec = { workspace = true } scale-info = { workspace = true } serde = { workspace = true } @@ -24,14 +24,14 @@ sp-std = { workspace = true } hex-literal = { workspace = true } [features] -default = [ "std" ] +default = ["std"] std = [ - "common-primitives/std", - "parity-scale-codec/std", - "scale-info/std", - "serde/std", - "sp-core/std", - "sp-io/std", - "sp-runtime/std", - "sp-std/std", + "common-primitives/std", + "parity-scale-codec/std", + "scale-info/std", + "serde/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", ] diff --git a/primitives/sidechain/Cargo.toml b/primitives/sidechain/Cargo.toml index 5bb84cd6..41131222 100644 --- a/primitives/sidechain/Cargo.toml +++ b/primitives/sidechain/Cargo.toml @@ -21,14 +21,14 @@ sp-std = { workspace = true } [features] -default = [ "full_crypto", "std" ] -full_crypto = [ "sp-core/full_crypto" ] +default = ["full_crypto", "std"] +full_crypto = ["sp-core/full_crypto"] std = [ - "parity-scale-codec/std", - "scale-info/std", - "serde/std", - "sp-core/std", - "sp-io/std", - "sp-runtime/std", - "sp-std/std", + "parity-scale-codec/std", + "scale-info/std", + "serde/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", ] diff --git a/primitives/teeracle/Cargo.toml b/primitives/teeracle/Cargo.toml index ae3b2bcb..2e4e644e 100644 --- a/primitives/teeracle/Cargo.toml +++ b/primitives/teeracle/Cargo.toml @@ -19,5 +19,5 @@ sp-std = { workspace = true } [features] -default = [ "std" ] -std = [ "common-primitives/std", "sp-std/std", "substrate-fixed/std" ] +default = ["std"] +std = ["common-primitives/std", "sp-std/std", "substrate-fixed/std"] diff --git a/primitives/teerex/Cargo.toml b/primitives/teerex/Cargo.toml index 438c67b9..8907181e 100644 --- a/primitives/teerex/Cargo.toml +++ b/primitives/teerex/Cargo.toml @@ -8,10 +8,10 @@ license = "Apache-2.0" edition = "2021" [dependencies] -parity-scale-codec = { workspace = true } common-primitives = { path = "../common", default-features = false } derive_more = { workspace = true } log = { workspace = true } +parity-scale-codec = { workspace = true } scale-info = { workspace = true } serde = { workspace = true } @@ -24,14 +24,14 @@ sp-std = { workspace = true } hex-literal = { workspace = true } [features] -default = [ "std" ] +default = ["std"] std = [ - "common-primitives/std", - "log/std", - "parity-scale-codec/std", - "scale-info/std", - "serde/std", - "sp-core/std", - "sp-runtime/std", - "sp-std/std", + "common-primitives/std", + "log/std", + "parity-scale-codec/std", + "scale-info/std", + "serde/std", + "sp-core/std", + "sp-runtime/std", + "sp-std/std", ] diff --git a/primitives/xcm-transactor/Cargo.toml b/primitives/xcm-transactor/Cargo.toml index 35f16424..739c4fb0 100644 --- a/primitives/xcm-transactor/Cargo.toml +++ b/primitives/xcm-transactor/Cargo.toml @@ -23,14 +23,14 @@ xcm = { workspace = true } cumulus-primitives-core = { workspace = true } [features] -default = [ "std" ] +default = ["std"] ksm = [] dot = [] std = [ - "common-primitives/std", - "cumulus-primitives-core/std", - "frame-support/std", - "parity-scale-codec/std", - "sp-std/std", - "xcm/std", + "common-primitives/std", + "cumulus-primitives-core/std", + "frame-support/std", + "parity-scale-codec/std", + "sp-std/std", + "xcm/std", ] diff --git a/sidechain/Cargo.toml b/sidechain/Cargo.toml index 4954d83b..99d7c5ea 100644 --- a/sidechain/Cargo.toml +++ b/sidechain/Cargo.toml @@ -9,8 +9,8 @@ license = "MS-RSL" edition = "2021" [dependencies] -parity-scale-codec = { workspace = true, features = ["full"] } log = { workspace = true } +parity-scale-codec = { workspace = true, features = ["full"] } scale-info = { workspace = true } serde = { workspace = true, optional = true } @@ -31,7 +31,7 @@ sp-std = { workspace = true } # benchmarking frame-benchmarking = { workspace = true, optional = true } -hex-literal ={ workspace = true, optional = true } +hex-literal = { workspace = true, optional = true } pallet-balances = { workspace = true, optional = true } teerex-primitives = { path = "../primitives/teerex", default-features = false } test-utils = { path = "../test-utils", optional = true } @@ -46,37 +46,37 @@ sp-keyring = { workspace = true } test-utils = { path = "../test-utils" } [features] -default = [ "std" ] +default = ["std"] std = [ - "enclave-bridge-primitives/std", - "frame-support/std", - "frame-system/std", - "log/std", - "pallet-enclave-bridge/std", - "pallet-teerex/std", - "pallet-timestamp/std", - "parity-scale-codec/std", - "scale-info/std", - "serde/std", - "sidechain-primitives/std", - "sp-core/std", - "sp-io/std", - "sp-runtime/std", - "sp-std/std", - "teerex-primitives/std", + "enclave-bridge-primitives/std", + "frame-support/std", + "frame-system/std", + "log/std", + "pallet-enclave-bridge/std", + "pallet-teerex/std", + "pallet-timestamp/std", + "parity-scale-codec/std", + "scale-info/std", + "serde/std", + "sidechain-primitives/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", + "teerex-primitives/std", ] runtime-benchmarks = [ - "frame-benchmarking", - "hex-literal", - "pallet-balances", - "pallet-timestamp/runtime-benchmarks", - "test-utils", - "pallet-enclave-bridge/runtime-benchmarks", - "pallet-teerex/runtime-benchmarks" + "frame-benchmarking", + "hex-literal", + "pallet-balances", + "pallet-timestamp/runtime-benchmarks", + "test-utils", + "pallet-enclave-bridge/runtime-benchmarks", + "pallet-teerex/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", - "pallet-enclave-bridge/try-runtime", - "pallet-teerex/try-runtime" + "frame-support/try-runtime", + "pallet-enclave-bridge/try-runtime", + "pallet-teerex/try-runtime", ] diff --git a/teeracle/Cargo.toml b/teeracle/Cargo.toml index ddef5bbd..dd80d0e4 100644 --- a/teeracle/Cargo.toml +++ b/teeracle/Cargo.toml @@ -9,8 +9,8 @@ license = "Apache-2.0" edition = "2021" [dependencies] -parity-scale-codec = { workspace = true } log = { workspace = true } +parity-scale-codec = { workspace = true } scale-info = { workspace = true } # local @@ -32,8 +32,8 @@ sp-std = { workspace = true } # benchmarking frame-benchmarking = { workspace = true, optional = true } hex-literal = { workspace = true, optional = true } -test-utils = { path = "../test-utils", optional = true } pallet-timestamp = { workspace = true, optional = true } +test-utils = { path = "../test-utils", optional = true } [dev-dependencies] externalities = { workspace = true } @@ -46,31 +46,31 @@ pallet-timestamp = { workspace = true } [features] -default = [ "std" ] +default = ["std"] std = [ - "frame-support/std", - "frame-system/std", - "log/std", - "pallet-teerex/std", - "parity-scale-codec/std", - "scale-info/std", - "sp-core/std", - "sp-io/std", - "sp-runtime/std", - "sp-std/std", - "substrate-fixed/std", - "teeracle-primitives/std", - "teerex-primitives/std", + "frame-support/std", + "frame-system/std", + "log/std", + "pallet-teerex/std", + "parity-scale-codec/std", + "scale-info/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", + "substrate-fixed/std", + "teeracle-primitives/std", + "teerex-primitives/std", ] runtime-benchmarks = [ - "frame-benchmarking", - "hex-literal", - "pallet-timestamp/runtime-benchmarks", - "test-utils", - "pallet-teerex/runtime-benchmarks" + "frame-benchmarking", + "hex-literal", + "pallet-timestamp/runtime-benchmarks", + "test-utils", + "pallet-teerex/runtime-benchmarks", ] try-runtime = [ - "frame-support/try-runtime", - "pallet-teerex/try-runtime" + "frame-support/try-runtime", + "pallet-teerex/try-runtime", ] diff --git a/teerex/Cargo.toml b/teerex/Cargo.toml index 8f9d6a3c..9297d58b 100644 --- a/teerex/Cargo.toml +++ b/teerex/Cargo.toml @@ -9,9 +9,9 @@ license = "MS-RSL" edition = "2021" [dependencies] -parity-scale-codec = { workspace = true } hex = { workspace = true } log = { workspace = true } +parity-scale-codec = { workspace = true } scale-info = { workspace = true } serde = { workspace = true, optional = true } webpki = { workspace = true } @@ -23,11 +23,11 @@ teerex-primitives = { path = "../primitives/teerex", default-features = false } # substrate dependencies frame-support = { workspace = true } frame-system = { workspace = true } +pallet-timestamp = { workspace = true } sp-core = { workspace = true } sp-io = { workspace = true } sp-runtime = { workspace = true } sp-std = { workspace = true } -pallet-timestamp = { workspace = true } # benchmarking frame-benchmarking = { workspace = true, optional = true } @@ -47,29 +47,29 @@ serde = { workspace = true, features = ["std"] } serde_json = { workspace = true, features = ["std"] } [features] -default = [ "std" ] +default = ["std"] std = [ - "frame-support/std", - "frame-system/std", - "log/std", - "pallet-timestamp/std", - "parity-scale-codec/std", - "scale-info/std", - "serde/std", - "sgx-verify/std", - "sp-core/std", - "sp-io/std", - "sp-runtime/std", - "sp-std/std", - "teerex-primitives/std", - "webpki/std", + "frame-support/std", + "frame-system/std", + "log/std", + "pallet-timestamp/std", + "parity-scale-codec/std", + "scale-info/std", + "serde/std", + "sgx-verify/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", + "teerex-primitives/std", + "webpki/std", ] runtime-benchmarks = [ - "frame-benchmarking", - "hex-literal", - "pallet-balances", - "pallet-timestamp/runtime-benchmarks", - "test-utils", + "frame-benchmarking", + "hex-literal", + "pallet-balances", + "pallet-timestamp/runtime-benchmarks", + "test-utils", ] -try-runtime = [ "frame-support/try-runtime" ] +try-runtime = ["frame-support/try-runtime"] diff --git a/teerex/sgx-verify/Cargo.toml b/teerex/sgx-verify/Cargo.toml index d9f1c485..435519ac 100644 --- a/teerex/sgx-verify/Cargo.toml +++ b/teerex/sgx-verify/Cargo.toml @@ -11,11 +11,11 @@ edition = "2021" [dependencies] base64 = { workspace = true } chrono = { workspace = true } -parity-scale-codec = { workspace = true } der = { workspace = true } hex = { workspace = true } hex-literal = { workspace = true } log = { workspace = true } +parity-scale-codec = { workspace = true } ring = { workspace = true } scale-info = { workspace = true } serde = { workspace = true } @@ -36,27 +36,27 @@ sp-std = { workspace = true } hex-literal = { workspace = true } [features] -default = [ "std" ] +default = ["std"] std = [ - "base64/std", - "chrono/std", - "der/std", - # substrate - "frame-support/std", - "hex/std", - "log/std", - "parity-scale-codec/std", - "ring/std", - "scale-info/std", - "serde/std", - "serde_json/std", - "sp-core/std", - "sp-io/std", - "sp-std/std", - # local - "teerex-primitives/std", - "webpki/std", - "x509-cert/std", + "base64/std", + "chrono/std", + "der/std", + # substrate + "frame-support/std", + "hex/std", + "log/std", + "parity-scale-codec/std", + "ring/std", + "scale-info/std", + "serde/std", + "serde_json/std", + "sp-core/std", + "sp-io/std", + "sp-std/std", + # local + "teerex-primitives/std", + "webpki/std", + "x509-cert/std", ] # Export ias/dcap data when we want to use them # in tests/benchmarks in the pallets. diff --git a/test-utils/Cargo.toml b/test-utils/Cargo.toml index 0fc5317e..05cdd0b0 100644 --- a/test-utils/Cargo.toml +++ b/test-utils/Cargo.toml @@ -15,5 +15,5 @@ sgx-verify = { default-features = false, features = ["test-data"], path = "../te teerex-primitives = { default-features = false, path = "../primitives/teerex" } [features] -default = [ 'std' ] -std = [ "log/std", "sgx-verify/std", "teerex-primitives/std" ] +default = ['std'] +std = ["log/std", "sgx-verify/std", "teerex-primitives/std"] diff --git a/xcm-transactor/Cargo.toml b/xcm-transactor/Cargo.toml index 57f3d070..bed3eccd 100644 --- a/xcm-transactor/Cargo.toml +++ b/xcm-transactor/Cargo.toml @@ -9,8 +9,8 @@ license = "(GPL-3.0-only)" edition = "2021" [dependencies] -parity-scale-codec = { workspace = true } log = { workspace = true } +parity-scale-codec = { workspace = true } scale-info = { workspace = true } # Local @@ -45,21 +45,21 @@ sp-keyring = { workspace = true } [features] -default = [ "std" ] +default = ["std"] std = [ - "cumulus-primitives-core/std", - "frame-support/std", - "frame-system/std", - "log/std", - "parity-scale-codec/std", - "scale-info/std", - "sp-core/std", - "sp-io/std", - "sp-runtime/std", - "sp-std/std", - "xcm-transactor-primitives/std", - "xcm/std", + "cumulus-primitives-core/std", + "frame-support/std", + "frame-system/std", + "log/std", + "parity-scale-codec/std", + "scale-info/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", + "xcm-transactor-primitives/std", + "xcm/std", ] runtime-benchmarks = [] -try-runtime = [ "frame-support/try-runtime" ] +try-runtime = ["frame-support/try-runtime"]