From 2b7e7c81324fdd9195960a7e665a757a83288446 Mon Sep 17 00:00:00 2001 From: bgallois <benjamin@gallois.cc> Date: Sat, 28 Sep 2024 20:09:29 +0200 Subject: [PATCH] clean Cargo.toml --- node/Cargo.toml | 26 +++++++++++++++----------- pallets/authority-members/Cargo.toml | 4 ++-- pallets/certification/Cargo.toml | 6 +++--- pallets/distance/Cargo.toml | 4 ++-- pallets/duniter-wot/Cargo.toml | 2 +- pallets/identity/Cargo.toml | 4 ++-- pallets/membership/Cargo.toml | 4 ++-- pallets/offences/Cargo.toml | 8 ++++---- pallets/oneshot-account/Cargo.toml | 2 +- pallets/quota/Cargo.toml | 2 +- pallets/smith-members/Cargo.toml | 10 +++++----- pallets/universal-dividend/Cargo.toml | 2 +- 12 files changed, 39 insertions(+), 35 deletions(-) diff --git a/node/Cargo.toml b/node/Cargo.toml index 97e51a664..1f0e66e49 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -33,7 +33,7 @@ embed = [] native = [] runtime-benchmarks = [ "common-runtime/runtime-benchmarks", - "dc-distance/runtime-benchmarks", + "dc-distance?/runtime-benchmarks", "frame-benchmarking-cli/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", @@ -50,7 +50,7 @@ runtime-benchmarks = [ try-runtime = [ "runtime-benchmarks", "common-runtime/try-runtime", - "dc-distance/try-runtime", + "dc-distance?/try-runtime", "distance-oracle?/try-runtime", "frame-system/try-runtime", "g1-runtime/try-runtime", @@ -113,21 +113,28 @@ async-io = { workspace = true } bs58 = { workspace = true } clap = { workspace = true, features = ["derive"] } clap_complete = { workspace = true } -common-runtime = { workspace = true } -dc-distance = { workspace = true } -distance-oracle = { workspace = true, optional = true } frame-benchmarking = { workspace = true } frame-benchmarking-cli = { workspace = true } frame-system = { workspace = true } futures = { workspace = true, features = ["compat"] } -g1-runtime = { workspace = true, optional = true } -gdev-runtime = { workspace = true, optional = true } -gtest-runtime = { workspace = true, optional = true } hex = { workspace = true } jsonrpsee = { workspace = true, features = ["server"] } log = { workspace = true } memmap2 = { workspace = true } num-format = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +serde_yaml = { workspace = true } + +# Local +common-runtime = { workspace = true } +g1-runtime = { workspace = true, optional = true } +gdev-runtime = { workspace = true, optional = true } +gtest-runtime = { workspace = true, optional = true } +distance-oracle = { workspace = true, optional = true } +dc-distance = { workspace = true, optional = true } + +# Substrate pallet-grandpa = { workspace = true, default-features = true } pallet-im-online = { workspace = true, default-features = true } pallet-transaction-payment = { workspace = true, default-features = true } @@ -153,9 +160,6 @@ sc-rpc-api = { workspace = true, default-features = true } sc-telemetry = { workspace = true, default-features = true } sc-transaction-pool = { workspace = true, default-features = true } sc-transaction-pool-api = { workspace = true, default-features = true } -serde = { workspace = true } -serde_json = { workspace = true } -serde_yaml = { workspace = true } sp-api = { workspace = true, default-features = true } sp-authority-discovery = { workspace = true, default-features = true } sp-block-builder = { workspace = true, default-features = true } diff --git a/pallets/authority-members/Cargo.toml b/pallets/authority-members/Cargo.toml index 0062b5c52..f5f21574a 100644 --- a/pallets/authority-members/Cargo.toml +++ b/pallets/authority-members/Cargo.toml @@ -62,5 +62,5 @@ sp-staking = { workspace = true } sp-std = { workspace = true } [dev-dependencies] -sp-io = { workspace = true } -sp-state-machine = { workspace = true } +sp-io = { workspace = true, default-features = true } +sp-state-machine = { workspace = true, default-features = true } diff --git a/pallets/certification/Cargo.toml b/pallets/certification/Cargo.toml index 86a5b131e..fb661f28c 100644 --- a/pallets/certification/Cargo.toml +++ b/pallets/certification/Cargo.toml @@ -52,6 +52,6 @@ sp-runtime = { workspace = true } sp-std = { workspace = true } [dev-dependencies] -maplit = { workspace = true } -sp-io = { workspace = true } -sp-keystore = { workspace = true } +maplit = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } +sp-keystore = { workspace = true, default-features = true } diff --git a/pallets/distance/Cargo.toml b/pallets/distance/Cargo.toml index e029709c6..8b8395e76 100644 --- a/pallets/distance/Cargo.toml +++ b/pallets/distance/Cargo.toml @@ -74,5 +74,5 @@ sp-runtime = { workspace = true } sp-std = { workspace = true } [dev-dependencies] -sp-io = { workspace = true } -sp-keystore = { workspace = true } +sp-io = { workspace = true, default-features = true } +sp-keystore = { workspace = true, default-features = true } diff --git a/pallets/duniter-wot/Cargo.toml b/pallets/duniter-wot/Cargo.toml index 1b8885b78..60cebeba8 100644 --- a/pallets/duniter-wot/Cargo.toml +++ b/pallets/duniter-wot/Cargo.toml @@ -69,4 +69,4 @@ sp-runtime = { workspace = true } sp-std = { workspace = true } [dev-dependencies] -sp-state-machine = { workspace = true } +sp-state-machine = { workspace = true, default-features = true } diff --git a/pallets/identity/Cargo.toml b/pallets/identity/Cargo.toml index ecdf1dc3b..66fde4ab4 100644 --- a/pallets/identity/Cargo.toml +++ b/pallets/identity/Cargo.toml @@ -56,5 +56,5 @@ sp-runtime = { workspace = true } sp-std = { workspace = true } [dev-dependencies] -sp-keystore = { workspace = true } -sp-state-machine = { workspace = true } +sp-keystore = { workspace = true, default-features = true } +sp-state-machine = { workspace = true, default-features = true } diff --git a/pallets/membership/Cargo.toml b/pallets/membership/Cargo.toml index 041da9909..390acda8e 100644 --- a/pallets/membership/Cargo.toml +++ b/pallets/membership/Cargo.toml @@ -52,5 +52,5 @@ sp-runtime = { workspace = true } sp-std = { workspace = true } [dev-dependencies] -maplit = { workspace = true } -sp-io = { workspace = true } +maplit = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } diff --git a/pallets/offences/Cargo.toml b/pallets/offences/Cargo.toml index 86733790b..ecbda4455 100644 --- a/pallets/offences/Cargo.toml +++ b/pallets/offences/Cargo.toml @@ -21,10 +21,6 @@ sp-runtime = { workspace = true } sp-staking = { workspace = true } sp-std = { workspace = true } -[dev-dependencies] -sp-core = { workspace = true } -sp-io = { workspace = true } - [features] default = ["std"] std = [ @@ -50,3 +46,7 @@ try-runtime = [ "frame-system/try-runtime", "sp-runtime/try-runtime", ] + +[dev-dependencies] +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } diff --git a/pallets/oneshot-account/Cargo.toml b/pallets/oneshot-account/Cargo.toml index 4eb9435a9..6062608da 100644 --- a/pallets/oneshot-account/Cargo.toml +++ b/pallets/oneshot-account/Cargo.toml @@ -59,4 +59,4 @@ sp-runtime = { workspace = true } sp-std = { workspace = true } [dev-dependencies] -pallet-balances = { workspace = true } +pallet-balances = { workspace = true, default-features = true } diff --git a/pallets/quota/Cargo.toml b/pallets/quota/Cargo.toml index 7b951e025..1cd80e27b 100644 --- a/pallets/quota/Cargo.toml +++ b/pallets/quota/Cargo.toml @@ -57,4 +57,4 @@ sp-runtime = { workspace = true } sp-std = { workspace = true } [dev-dependencies] -sp-io = { workspace = true } +sp-io = { workspace = true, default-features = true } diff --git a/pallets/smith-members/Cargo.toml b/pallets/smith-members/Cargo.toml index 47f3b24f2..2406e3697 100644 --- a/pallets/smith-members/Cargo.toml +++ b/pallets/smith-members/Cargo.toml @@ -24,11 +24,6 @@ sp-runtime = { workspace = true } sp-staking = { workspace = true } sp-std = { workspace = true } -[dev-dependencies] -maplit = { workspace = true } -sp-core = { workspace = true } -sp-io = { workspace = true } - [features] default = ["std"] std = [ @@ -60,3 +55,8 @@ try-runtime = [ "pallet-authority-members/try-runtime", "sp-runtime/try-runtime", ] + +[dev-dependencies] +maplit = { workspace = true, default-features = true } +sp-core = { workspace = true, default-features = true } +sp-io = { workspace = true, default-features = true } diff --git a/pallets/universal-dividend/Cargo.toml b/pallets/universal-dividend/Cargo.toml index a859b2f97..c0f5b52c9 100644 --- a/pallets/universal-dividend/Cargo.toml +++ b/pallets/universal-dividend/Cargo.toml @@ -65,4 +65,4 @@ sp-runtime = { workspace = true } sp-std = { workspace = true } [dev-dependencies] -sp-core = { workspace = true } +sp-core = { workspace = true, default-features = true } -- GitLab