From 78e0641d3031999553cea9f4404aa1ca12916f25 Mon Sep 17 00:00:00 2001 From: Hugo Trentesaux <hugo@trentesaux.fr> Date: Fri, 9 Feb 2024 15:05:18 +0100 Subject: [PATCH] format tomls --- client/distance/Cargo.toml | 14 +++++++------- distance-oracle/Cargo.toml | 20 +++++++++++++------- end2end-tests/Cargo.toml | 6 +++--- node/Cargo.toml | 11 +++++------ pallets/authority-members/Cargo.toml | 2 +- pallets/certification/Cargo.toml | 2 +- pallets/distance/Cargo.toml | 2 +- pallets/duniter-account/Cargo.toml | 2 +- pallets/duniter-test-parameters/Cargo.toml | 2 +- pallets/duniter-wot/Cargo.toml | 2 +- pallets/identity/Cargo.toml | 2 +- pallets/membership/Cargo.toml | 2 +- pallets/offences/Cargo.toml | 2 +- pallets/oneshot-account/Cargo.toml | 2 +- pallets/provide-randomness/Cargo.toml | 2 +- pallets/quota/Cargo.toml | 2 +- pallets/session-benchmarking/Cargo.toml | 2 +- pallets/smith-members/Cargo.toml | 2 +- pallets/universal-dividend/Cargo.toml | 2 +- pallets/upgrade-origin/Cargo.toml | 2 +- primitives/distance/Cargo.toml | 4 ++-- primitives/duniter/Cargo.toml | 2 +- primitives/membership/Cargo.toml | 4 ++-- runtime/common/Cargo.toml | 2 +- runtime/g1/Cargo.toml | 4 ++-- runtime/gdev/Cargo.toml | 4 ++-- runtime/gtest/Cargo.toml | 4 ++-- xtask/Cargo.toml | 14 +++++++------- 28 files changed, 63 insertions(+), 58 deletions(-) diff --git a/client/distance/Cargo.toml b/client/distance/Cargo.toml index de750fed6..96e1ea492 100644 --- a/client/distance/Cargo.toml +++ b/client/distance/Cargo.toml @@ -37,13 +37,13 @@ try-runtime = [ [dependencies] codec = { workspace = true, features = ["derive"] } -frame-support = { workspace = true } -log = { workspace = true } +frame-support = { workspace = true } +log = { workspace = true } pallet-distance = { workspace = true } -sc-client-api = { workspace = true } +sc-client-api = { workspace = true } scale-info = { workspace = true, features = ["derive"] } -sp-core = { workspace = true } +sp-core = { workspace = true } sp-distance = { workspace = true } -sp-keystore = { workspace = true } -sp-runtime = { workspace = true } -thiserror = { workspace = true } +sp-keystore = { workspace = true } +sp-runtime = { workspace = true } +thiserror = { workspace = true } diff --git a/distance-oracle/Cargo.toml b/distance-oracle/Cargo.toml index 14e478bf8..3f7614e3e 100644 --- a/distance-oracle/Cargo.toml +++ b/distance-oracle/Cargo.toml @@ -11,8 +11,8 @@ name = "distance-oracle" required-features = ["standalone"] [features] -default = [ "standalone", "std" ] -standalone = [ "clap", "tokio" ] +default = ["standalone", "std"] +standalone = ["clap", "tokio"] std = [ "codec/std", "fnv/std", @@ -23,7 +23,7 @@ std = [ "sp-distance/std", "sp-runtime/std", ] -try-runtime = [ "sp-distance/try-runtime", "sp-runtime/try-runtime" ] +try-runtime = ["sp-distance/try-runtime", "sp-runtime/try-runtime"] runtime-benchmarks = [] [dependencies] @@ -38,11 +38,17 @@ simple_logger = { workspace = true } sp-core = { workspace = true } sp-distance = { workspace = true } sp-runtime = { workspace = true } -subxt = { workspace = true, features = ["substrate-compat", "native", "jsonrpsee"] } -tokio = { workspace = true, features = ["rt-multi-thread","macros"], optional = true } +subxt = { workspace = true, features = [ + "substrate-compat", + "native", + "jsonrpsee", +] } +tokio = { workspace = true, features = [ + "rt-multi-thread", + "macros", +], optional = true } [dev-dependencies] bincode = { workspace = true } dubp-wot = { workspace = true } -flate2 = { workspace = true, features = ["zlib-ng-compat",] } - +flate2 = { workspace = true, features = ["zlib-ng-compat"] } diff --git a/end2end-tests/Cargo.toml b/end2end-tests/Cargo.toml index 7f9a7599c..d045afbb8 100644 --- a/end2end-tests/Cargo.toml +++ b/end2end-tests/Cargo.toml @@ -13,7 +13,7 @@ name = "cucumber_tests" harness = false # allows Cucumber to print output instead of libtest [features] -default = [ "std" ] +default = ["std"] std = [ "anyhow/std", "codec/std", @@ -24,8 +24,8 @@ std = [ "sp-core/std", "sp-runtime/std", ] -standalone = [ "distance-oracle/standalone" ] -try-runtime = [ "distance-oracle/try-runtime", "sp-runtime/try-runtime" ] +standalone = ["distance-oracle/standalone"] +try-runtime = ["distance-oracle/try-runtime", "sp-runtime/try-runtime"] runtime-benchmarks = [] [dev-dependencies] diff --git a/node/Cargo.toml b/node/Cargo.toml index e1188e522..35f856a57 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -19,16 +19,16 @@ name = "duniter" path = "src/main.rs" [features] -default = [ "distance-oracle", "gdev" ] -gdev = [ "gdev-runtime", "std" ] -g1 = [ "g1-runtime", "std" ] +default = ["distance-oracle", "gdev"] +gdev = ["gdev-runtime", "std"] +g1 = ["g1-runtime", "std"] constant-fees = [ "common-runtime/constant-fees", "g1-runtime/constant-fees", "gdev-runtime/constant-fees", "gtest-runtime/constant-fees", ] -gtest = [ "gtest-runtime", "std" ] +gtest = ["gtest-runtime", "std"] embed = [] runtime-benchmarks = [ "common-runtime/runtime-benchmarks", @@ -106,7 +106,7 @@ std = [ "sp-transaction-storage-proof/std", "sp-trie/std", ] -standalone = [ "distance-oracle?/standalone" ] +standalone = ["distance-oracle?/standalone"] [dependencies] async-io = { workspace = true } @@ -186,4 +186,3 @@ substrate-build-script-utils = { workspace = true } sc-cli = { workspace = true } sc-service = { workspace = true } sp-trie = { workspace = true } - diff --git a/pallets/authority-members/Cargo.toml b/pallets/authority-members/Cargo.toml index 3fb040c74..2e3aa3a14 100644 --- a/pallets/authority-members/Cargo.toml +++ b/pallets/authority-members/Cargo.toml @@ -10,7 +10,7 @@ repository.workspace = true version.workspace = true [features] -default = [ "std" ] +default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/certification/Cargo.toml b/pallets/certification/Cargo.toml index 4f9ea15c7..eff126ff9 100644 --- a/pallets/certification/Cargo.toml +++ b/pallets/certification/Cargo.toml @@ -10,7 +10,7 @@ repository.workspace = true version.workspace = true [features] -default = [ "std" ] +default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/distance/Cargo.toml b/pallets/distance/Cargo.toml index 6eb72c178..a87803501 100644 --- a/pallets/distance/Cargo.toml +++ b/pallets/distance/Cargo.toml @@ -10,7 +10,7 @@ repository.workspace = true version.workspace = true [features] -default = [ "std" ] +default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/duniter-account/Cargo.toml b/pallets/duniter-account/Cargo.toml index 4e68ad180..6b0737d78 100644 --- a/pallets/duniter-account/Cargo.toml +++ b/pallets/duniter-account/Cargo.toml @@ -10,7 +10,7 @@ repository.workspace = true version.workspace = true [features] -default = [ "std" ] +default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/duniter-test-parameters/Cargo.toml b/pallets/duniter-test-parameters/Cargo.toml index 8373c0d7d..735c97335 100644 --- a/pallets/duniter-test-parameters/Cargo.toml +++ b/pallets/duniter-test-parameters/Cargo.toml @@ -9,7 +9,7 @@ repository.workspace = true version.workspace = true [features] -default = [ "std" ] +default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/duniter-wot/Cargo.toml b/pallets/duniter-wot/Cargo.toml index 7511419c2..dd247896e 100644 --- a/pallets/duniter-wot/Cargo.toml +++ b/pallets/duniter-wot/Cargo.toml @@ -10,7 +10,7 @@ repository.workspace = true version.workspace = true [features] -default = [ "std" ] +default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/identity/Cargo.toml b/pallets/identity/Cargo.toml index 91962e36e..4cbd9dab0 100644 --- a/pallets/identity/Cargo.toml +++ b/pallets/identity/Cargo.toml @@ -10,7 +10,7 @@ repository.workspace = true version.workspace = true [features] -default = [ "std" ] +default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/membership/Cargo.toml b/pallets/membership/Cargo.toml index a6dfe14a5..e33045ca9 100644 --- a/pallets/membership/Cargo.toml +++ b/pallets/membership/Cargo.toml @@ -10,7 +10,7 @@ repository.workspace = true version.workspace = true [features] -default = [ "std" ] +default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/offences/Cargo.toml b/pallets/offences/Cargo.toml index 2929b5c0c..ccc57523e 100644 --- a/pallets/offences/Cargo.toml +++ b/pallets/offences/Cargo.toml @@ -27,7 +27,7 @@ sp-core = { workspace = true } sp-io = { workspace = true } [features] -default = [ "std" ] +default = ["std"] std = [ "codec/std", "frame-support/std", diff --git a/pallets/oneshot-account/Cargo.toml b/pallets/oneshot-account/Cargo.toml index 200385ac3..d019ccef6 100644 --- a/pallets/oneshot-account/Cargo.toml +++ b/pallets/oneshot-account/Cargo.toml @@ -10,7 +10,7 @@ repository.workspace = true version.workspace = true [features] -default = [ "std" ] +default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/provide-randomness/Cargo.toml b/pallets/provide-randomness/Cargo.toml index 561118907..c16ed1399 100644 --- a/pallets/provide-randomness/Cargo.toml +++ b/pallets/provide-randomness/Cargo.toml @@ -9,7 +9,7 @@ repository.workspace = true version.workspace = true [features] -default = [ "std" ] +default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/quota/Cargo.toml b/pallets/quota/Cargo.toml index ba2fec4c6..3c92a89ec 100644 --- a/pallets/quota/Cargo.toml +++ b/pallets/quota/Cargo.toml @@ -10,7 +10,7 @@ repository.workspace = true version.workspace = true [features] -default = [ "std" ] +default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/session-benchmarking/Cargo.toml b/pallets/session-benchmarking/Cargo.toml index cf0865cd9..3da6b64a6 100644 --- a/pallets/session-benchmarking/Cargo.toml +++ b/pallets/session-benchmarking/Cargo.toml @@ -21,7 +21,7 @@ sp-runtime = { workspace = true } codec = { workspace = true } [features] -default = [ "std" ] +default = ["std"] std = [ "codec/std", "frame-benchmarking?/std", diff --git a/pallets/smith-members/Cargo.toml b/pallets/smith-members/Cargo.toml index 29d09ddfa..651a62a8a 100644 --- a/pallets/smith-members/Cargo.toml +++ b/pallets/smith-members/Cargo.toml @@ -30,7 +30,7 @@ sp-core = { workspace = true } sp-io = { workspace = true } [features] -default = [ "std" ] +default = ["std"] std = [ "codec/std", "frame-benchmarking?/std", diff --git a/pallets/universal-dividend/Cargo.toml b/pallets/universal-dividend/Cargo.toml index d99c54dc6..5fdfc69f5 100644 --- a/pallets/universal-dividend/Cargo.toml +++ b/pallets/universal-dividend/Cargo.toml @@ -9,7 +9,7 @@ repository.workspace = true version.workspace = true [features] -default = [ "std" ] +default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/pallets/upgrade-origin/Cargo.toml b/pallets/upgrade-origin/Cargo.toml index 9b70284dc..b1f08f0bc 100644 --- a/pallets/upgrade-origin/Cargo.toml +++ b/pallets/upgrade-origin/Cargo.toml @@ -9,7 +9,7 @@ repository.workspace = true version.workspace = true [features] -default = [ "std" ] +default = ["std"] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", "frame-support/runtime-benchmarks", diff --git a/primitives/distance/Cargo.toml b/primitives/distance/Cargo.toml index 69fd6e601..9c035c38b 100644 --- a/primitives/distance/Cargo.toml +++ b/primitives/distance/Cargo.toml @@ -14,7 +14,7 @@ default-features = false targets = ["x86_64-unknown-linux-gnu"] [features] -default = [ "std" ] +default = ["std"] std = [ "async-trait", "codec/std", @@ -26,7 +26,7 @@ std = [ "sp-std/std", "thiserror", ] -try-runtime = [ "frame-support/try-runtime", "sp-runtime/try-runtime" ] +try-runtime = ["frame-support/try-runtime", "sp-runtime/try-runtime"] runtime-benchmarks = [] [dependencies] diff --git a/primitives/duniter/Cargo.toml b/primitives/duniter/Cargo.toml index 54a681c14..0dc499ff3 100644 --- a/primitives/duniter/Cargo.toml +++ b/primitives/duniter/Cargo.toml @@ -14,6 +14,6 @@ default-features = false targets = ["x86_64-unknown-linux-gnu"] [features] -default = [ "std" ] +default = ["std"] std = [] try-runtime = [] diff --git a/primitives/membership/Cargo.toml b/primitives/membership/Cargo.toml index 38985157b..0a7973390 100644 --- a/primitives/membership/Cargo.toml +++ b/primitives/membership/Cargo.toml @@ -14,7 +14,7 @@ default-features = false targets = ["x86_64-unknown-linux-gnu"] [features] -default = [ "std" ] +default = ["std"] std = [ "codec/std", "frame-support/std", @@ -23,7 +23,7 @@ std = [ "sp-runtime/std", "sp-std/std", ] -try-runtime = [ "frame-support/try-runtime", "sp-runtime/try-runtime" ] +try-runtime = ["frame-support/try-runtime", "sp-runtime/try-runtime"] runtime-benchmarks = [] [dependencies] diff --git a/runtime/common/Cargo.toml b/runtime/common/Cargo.toml index c9db9228b..4dae70831 100644 --- a/runtime/common/Cargo.toml +++ b/runtime/common/Cargo.toml @@ -10,7 +10,7 @@ version.workspace = true targets = ["x86_64-unknown-linux-gnu"] [features] -default = [ "std" ] +default = ["std"] no_std = [] constant-fees = [] runtime-benchmarks = [ diff --git a/runtime/g1/Cargo.toml b/runtime/g1/Cargo.toml index 3be3fb983..76c98358b 100644 --- a/runtime/g1/Cargo.toml +++ b/runtime/g1/Cargo.toml @@ -12,8 +12,8 @@ version.workspace = true targets = ["x86_64-unknown-linux-gnu"] [features] -default = [ "std" ] -constant-fees = [ "common-runtime/constant-fees" ] +default = ["std"] +constant-fees = ["common-runtime/constant-fees"] runtime-benchmarks = [ "common-runtime/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", diff --git a/runtime/gdev/Cargo.toml b/runtime/gdev/Cargo.toml index 5dc602f4e..ef804b7e9 100644 --- a/runtime/gdev/Cargo.toml +++ b/runtime/gdev/Cargo.toml @@ -11,8 +11,8 @@ version.workspace = true targets = ["x86_64-unknown-linux-gnu"] [features] -default = [ "std" ] -constant-fees = [ "common-runtime/constant-fees" ] +default = ["std"] +constant-fees = ["common-runtime/constant-fees"] runtime-benchmarks = [ "common-runtime/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", diff --git a/runtime/gtest/Cargo.toml b/runtime/gtest/Cargo.toml index a0b7ac7cd..2b7cbbcc1 100644 --- a/runtime/gtest/Cargo.toml +++ b/runtime/gtest/Cargo.toml @@ -11,8 +11,8 @@ version.workspace = true targets = ["x86_64-unknown-linux-gnu"] [features] -default = [ "std" ] -constant-fees = [ "common-runtime/constant-fees" ] +default = ["std"] +constant-fees = ["common-runtime/constant-fees"] runtime-benchmarks = [ "common-runtime/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 6540c695d..4226040fd 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -17,18 +17,18 @@ anyhow = { workspace = true } clap = { workspace = true, features = ["derive"] } codec = { workspace = true, features = ["derive", "full", "bit-vec"] } frame-metadata = { workspace = true } -graphql_client = { workspace = true } -hex = { workspace = true } -memmap2 = { workspace = true } -placeholder = { workspace = true } +graphql_client = { workspace = true } +hex = { workspace = true } +memmap2 = { workspace = true } +placeholder = { workspace = true } reqwest = { workspace = true, features = ["json"] } scale-info = { workspace = true, features = ["bit-vec"] } -scale-value = { workspace = true } +scale-value = { workspace = true } serde = { workspace = true, features = ["derive"] } -serde_json = { workspace = true } +serde_json = { workspace = true } tera = { workspace = true } tokio = { workspace = true, features = ["macros"] } -version_check = { workspace = true } +version_check = { workspace = true } weight-analyzer = { workspace = true } [features] -- GitLab