Skip to content

Commit 7315790

Browse files
Cleanup unused crates (#8006)
Follow up to #7999 RustRover warns several dependencies are unused. I tried to remove them, and it can pass compile and tests on my local machine (macOS and Ubuntu 24.04), but `udeps` doesn't find these. I've no confidence. Let's see what CI says. --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 9a901f3 commit 7315790

File tree

193 files changed

+124
-881
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+124
-881
lines changed

Cargo.lock

Lines changed: 3 additions & 288 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,8 @@ backoff = { version = "0.4" }
643643
backtrace = { version = "0.3.71" }
644644
binary-merkle-tree = { path = "substrate/utils/binary-merkle-tree", default-features = false }
645645
bincode = { version = "1.3.3" }
646-
bip39 = { version = "2.0.0" }
646+
# personal fork here as workaround for: https://github.com/rust-bitcoin/rust-bip39/pull/64
647+
bip39 = { package = "parity-bip39", version = "2.0.1", default-features = false }
647648
bitflags = { version = "1.3.2" }
648649
bitvec = { version = "1.0.1", default-features = false }
649650
blake2 = { version = "0.10.4", default-features = false }
@@ -690,7 +691,6 @@ chain-spec-guide-runtime = { path = "docs/sdk/src/reference_docs/chain_spec_runt
690691
chrono = { version = "0.4.31" }
691692
cid = { version = "0.9.0" }
692693
clap = { version = "4.5.13" }
693-
clap-num = { version = "1.0.2" }
694694
clap_complete = { version = "4.5.13" }
695695
cmd_lib = { version = "1.9.5" }
696696
coarsetime = { version = "0.1.22" }
@@ -803,11 +803,11 @@ frame-try-runtime = { path = "substrate/frame/try-runtime", default-features = f
803803
fs4 = { version = "0.7.0" }
804804
fs_extra = { version = "1.3.0" }
805805
futures = { version = "0.3.31" }
806-
futures-channel = { version = "0.3.23" }
807806
futures-timer = { version = "3.0.2" }
808807
futures-util = { version = "0.3.30", default-features = false }
809808
generate-bags = { path = "substrate/utils/frame/generate-bags", default-features = false }
810809
gethostname = { version = "0.2.3" }
810+
git2 = { version = "0.20.0", default-features = false }
811811
glob = { version = "0.3" }
812812
glutton-westend-runtime = { path = "cumulus/parachains/runtimes/glutton/glutton-westend" }
813813
governor = { version = "0.6.0" }
@@ -860,6 +860,7 @@ libc = { version = "0.2.155" }
860860
libfuzzer-sys = { version = "0.4" }
861861
libp2p = { version = "0.54.1" }
862862
libp2p-identity = { version = "0.2.9" }
863+
libp2p-kad = { version = "0.46.2", default-features = false }
863864
libsecp256k1 = { version = "0.7.0", default-features = false }
864865
linked-hash-map = { version = "0.5.4" }
865866
linked_hash_set = { version = "0.1.4" }
@@ -885,7 +886,6 @@ mmr-rpc = { path = "substrate/client/merkle-mountain-range/rpc", default-feature
885886
mockall = { version = "0.13.1" }
886887
multiaddr = { version = "0.18.1" }
887888
multihash = { version = "0.19.1", default-features = false }
888-
multihash-codetable = { version = "0.1.1" }
889889
multistream-select = { version = "0.13.0" }
890890
names = { version = "0.14.0", default-features = false }
891891
nix = { version = "0.29.0" }
@@ -1115,9 +1115,7 @@ polkavm-derive = "0.18.0"
11151115
polkavm-linker = "0.18.0"
11161116
portpicker = { version = "0.1.1" }
11171117
pretty_assertions = { version = "1.3.0" }
1118-
primitive-types = { version = "0.13.1", default-features = false, features = [
1119-
"num-traits",
1120-
] }
1118+
primitive-types = { version = "0.13.1", default-features = false, features = ["num-traits"] }
11211119
proc-macro-crate = { version = "3.0.0" }
11221120
proc-macro-warning = { version = "1.0.0", default-features = false }
11231121
proc-macro2 = { version = "1.0.86" }
@@ -1137,14 +1135,12 @@ rand_chacha = { version = "0.3.1", default-features = false }
11371135
rand_core = { version = "0.6.2" }
11381136
rand_distr = { version = "0.4.3" }
11391137
rand_pcg = { version = "0.3.1" }
1140-
rayon = { version = "1.5.1" }
11411138
rbtag = { version = "0.3" }
11421139
ref-cast = { version = "1.0.23" }
11431140
regex = { version = "1.10.2" }
11441141
relay-substrate-client = { path = "bridges/relays/client-substrate" }
11451142
relay-utils = { path = "bridges/relays/utils" }
11461143
remote-externalities = { path = "substrate/utils/frame/remote-externalities", default-features = false, package = "frame-remote-externalities" }
1147-
reqwest = { version = "0.12.9", default-features = false }
11481144
ripemd = { version = "0.1.3", default-features = false }
11491145
rlp = { version = "0.6.1", default-features = false }
11501146
rococo-emulated-chain = { path = "cumulus/parachains/integration-tests/emulated/chains/relays/rococo" }
@@ -1397,6 +1393,7 @@ trybuild = { version = "1.0.103" }
13971393
tt-call = { version = "1.0.8" }
13981394
tuplex = { version = "0.1", default-features = false }
13991395
twox-hash = { version = "1.6.3", default-features = false }
1396+
txtesttool = { version = "0.4.0", package = "substrate-txtesttool" }
14001397
unsigned-varint = { version = "0.7.2" }
14011398
url = { version = "2.5.4" }
14021399
void = { version = "1.0.2" }
@@ -1423,7 +1420,6 @@ xcm-procedural = { path = "polkadot/xcm/procedural", default-features = false }
14231420
xcm-runtime-apis = { path = "polkadot/xcm/xcm-runtime-apis", default-features = false }
14241421
xcm-simulator = { path = "polkadot/xcm/xcm-simulator", default-features = false }
14251422
zeroize = { version = "1.7.0", default-features = false }
1426-
zombienet-configuration = { version = "0.2.29" }
14271423
zombienet-sdk = { version = "0.2.29" }
14281424
zstd = { version = "0.12.4", default-features = false }
14291425

bridges/modules/xcm-bridge-hub/src/exporter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ where
8181
// `HaulBlobExporter` may consume the `universal_source` and `destination` arguments, so
8282
// let's save them before
8383
let bridge_origin_universal_location =
84-
universal_source.clone().take().ok_or(SendError::MissingArgument)?;
84+
universal_source.clone().ok_or(SendError::MissingArgument)?;
8585
// Note: watch out this is `ExportMessage::destination`, which is relative to the `network`,
8686
// which means it does not contain `GlobalConsensus`, We need to find `BridgeId` with
8787
// `Self::bridge_locations` which requires **universal** location for destination.
8888
let bridge_destination_universal_location = {
89-
let dest = destination.clone().take().ok_or(SendError::MissingArgument)?;
89+
let dest = destination.clone().ok_or(SendError::MissingArgument)?;
9090
match dest.global_consensus() {
9191
Ok(dest_network) => {
9292
log::trace!(

bridges/relays/equivocation/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ async-std = { features = ["attributes"], workspace = true }
1616
async-trait = { workspace = true }
1717
bp-header-chain = { workspace = true, default-features = true }
1818
finality-relay = { workspace = true }
19-
frame-support = { workspace = true, default-features = true }
2019
futures = { workspace = true }
2120
log = { workspace = true }
2221
num-traits = { workspace = true, default-features = true }

bridges/relays/lib-substrate-relay/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,5 @@ sp-runtime = { workspace = true, default-features = true }
5555
sp-trie = { workspace = true }
5656

5757
[dev-dependencies]
58-
pallet-transaction-payment = { workspace = true, default-features = true }
5958
relay-substrate-client = { features = ["test-helpers"], workspace = true }
6059
scale-info = { features = ["derive"], workspace = true }

bridges/relays/parachains/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,5 @@ bp-polkadot-core = { workspace = true, default-features = true }
2323
relay-substrate-client = { workspace = true }
2424

2525
[dev-dependencies]
26-
codec = { workspace = true, default-features = true }
2726
relay-substrate-client = { features = ["test-helpers"], workspace = true }
2827
sp-core = { workspace = true, default-features = true }

bridges/snowbridge/pallets/system-frontend/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ xcm = { workspace = true }
3737
xcm-executor = { workspace = true }
3838

3939
[dev-dependencies]
40-
hex = { workspace = true, default-features = true }
41-
hex-literal = { workspace = true, default-features = true }
4240
pallet-balances = { workspace = true, default-features = true }
4341
snowbridge-test-utils = { workspace = true }
4442

bridges/snowbridge/pallets/system-v2/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ snowbridge-outbound-queue-primitives = { workspace = true }
3939
snowbridge-pallet-system = { workspace = true }
4040

4141
[dev-dependencies]
42-
hex = { workspace = true, default-features = true }
4342
hex-literal = { workspace = true, default-features = true }
4443
pallet-balances = { workspace = true, default-features = true }
4544
polkadot-primitives = { workspace = true, default-features = true }

bridges/snowbridge/primitives/core/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ xcm-executor = { workspace = true }
3737

3838
bp-relayers = { workspace = true }
3939

40-
[dev-dependencies]
41-
hex = { workspace = true, default-features = true }
42-
4340
[features]
4441
default = ["std"]
4542
std = [

bridges/snowbridge/primitives/ethereum/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ sp-std = { workspace = true }
3131

3232
ethabi = { workspace = true }
3333

34-
[dev-dependencies]
35-
rand = { workspace = true, default-features = true }
36-
serde_json = { workspace = true, default-features = true }
37-
3834
[features]
3935
default = ["std"]
4036
expensive_tests = []

0 commit comments

Comments
 (0)