Skip to content

Commit b07547b

Browse files
authored
deps: remove unused dependencies (#2170)
I just stumbled upon the very nice tool [`cargo machete`](https://blog.benj.me/2022/04/27/cargo-machete/) which finds unused dependencies. So let's remove them! Ran only `cargo check` locally - let's see if CI also says that all is fine.
1 parent fe6dcac commit b07547b

File tree

9 files changed

+2
-120
lines changed

9 files changed

+2
-120
lines changed

Cargo.lock

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

iroh-base/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ anyhow = { version = "1" }
1919
bao-tree = { version = "0.13", features = ["tokio_fsm", "validate"], default-features = false, optional = true }
2020
data-encoding = { version = "2.3.3", optional = true }
2121
hex = "0.4.3"
22-
multibase = { version = "0.9.1", optional = true }
2322
postcard = { version = "1", default-features = false, features = ["alloc", "use-std", "experimental-derive"], optional = true }
2423
redb = { version = "2.0.0", optional = true }
2524
serde = { version = "1", features = ["derive"] }
@@ -47,7 +46,7 @@ serde_test = "1.0.176"
4746

4847
[features]
4948
default = ["hash", "base32"]
50-
hash = ["bao-tree", "multibase", "data-encoding", "postcard"]
49+
hash = ["bao-tree", "data-encoding", "postcard"]
5150
base32 = ["data-encoding"]
5251
redb = ["dep:redb"]
5352
key = ["dep:ed25519-dalek", "dep:once_cell", "dep:rand", "dep:rand_core", "dep:ssh-key", "dep:ttl_cache", "dep:aead", "dep:crypto_box", "dep:zeroize", "dep:url", "dep:derive_more"]

iroh-bytes/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ anyhow = { version = "1" }
2020
bao-tree = { version = "0.13", features = ["tokio_fsm"], default-features = false }
2121
bytes = { version = "1.4", features = ["serde"] }
2222
chrono = "0.4.31"
23-
data-encoding = "2.3.3"
2423
derive_more = { version = "1.0.0-beta.1", features = ["debug", "display", "deref", "deref_mut", "from", "try_into", "into"] }
2524
flume = "0.11"
2625
futures = "0.3.25"
@@ -32,7 +31,6 @@ iroh-io = { version = "0.6.0", features = ["stats"] }
3231
iroh-metrics = { version = "0.13.0", path = "../iroh-metrics", optional = true }
3332
iroh-net = { version = "0.13.0", path = "../iroh-net", optional = true }
3433
num_cpus = "1.15.0"
35-
once_cell = "1.17.0"
3634
parking_lot = { version = "0.12.1", optional = true }
3735
postcard = { version = "1", default-features = false, features = ["alloc", "use-std", "experimental-derive"] }
3836
quinn = "0.10"
@@ -43,7 +41,6 @@ redb_v1 = { package = "redb", version = "1.5.1", optional = true }
4341
reflink-copy = { version = "0.1.8", optional = true }
4442
self_cell = "1.0.1"
4543
serde = { version = "1", features = ["derive"] }
46-
serde-error = "0.1.2"
4744
smallvec = { version = "1.10.0", features = ["serde", "const_new"] }
4845
tempfile = { version = "3.10.0", optional = true }
4946
thiserror = "1"

iroh-cli/Cargo.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ human-time = { version = "0.1.6" }
3939
indicatif = { version = "0.17", features = ["tokio"] }
4040
iroh = { version = "0.13.0", path = "../iroh", features = ["metrics"] }
4141
iroh-metrics = { version = "0.13.0", path = "../iroh-metrics" }
42-
multibase = { version = "0.9.1" }
43-
num_cpus = "1.16.0"
4442
parking_lot = "0.12.1"
4543
postcard = "1.0.8"
4644
portable-atomic = "1"
@@ -54,13 +52,10 @@ serde = { version = "1.0.197", features = ["derive"] }
5452
strum = { version = "0.26.2", features = ["derive"] }
5553
thiserror = "1.0.58"
5654
time = { version = "0.3", features = ["formatting"] }
57-
toml = { version = "0.8" }
5855
tracing = "0.1.40"
5956
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
6057
tokio = { version = "1.36.0", features = ["full"] }
61-
tokio-util = { version = "0.7", features = ["codec", "io-util", "io", "time"] }
6258
tempfile = "3.10.1"
63-
url = { version = "2.4", features = ["serde"] }
6459
flume = "0.11.0"
6560

6661
[dev-dependencies]
@@ -72,4 +67,4 @@ walkdir = "2"
7267

7368
[features]
7469
default = ["metrics"]
75-
metrics = []
70+
metrics = []

iroh-gossip/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ workspace = true
1919
anyhow = { version = "1" }
2020
blake3 = { package = "iroh-blake3", version = "1.4.3"}
2121
bytes = { version = "1.4.0", features = ["serde"] }
22-
data-encoding = "2.4.0"
2322
derive_more = { version = "1.0.0-beta.1", features = ["add", "debug", "deref", "display", "from", "try_into", "into"] }
2423
ed25519-dalek = { version = "2.0.0", features = ["serde", "rand_core"] }
2524
indexmap = "2.0"
@@ -37,7 +36,6 @@ iroh-net = { path = "../iroh-net", version = "0.13.0", optional = true }
3736
quinn = { version = "0.10", optional = true }
3837
tokio = { version = "1", optional = true, features = ["io-util", "sync", "rt", "macros", "net", "fs"] }
3938
tokio-util = { version = "0.7.8", optional = true, features = ["codec"] }
40-
once_cell = "1.18.0"
4139
genawaiter = { version = "0.99.1", default-features = false, features = ["futures03"] }
4240

4341
[dev-dependencies]

iroh-net/Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,13 @@ aead = { version = "0.5.2", features = ["bytes"] }
2020
anyhow = { version = "1" }
2121
backoff = "0.4.0"
2222
bytes = "1"
23-
curve25519-dalek = "4.0.0"
24-
data-encoding = "2.3.3"
2523
default-net = "0.20"
2624
der = { version = "0.7", features = ["alloc", "derive"] }
2725
derive_more = { version = "1.0.0-beta.1", features = ["debug", "display", "from", "try_into", "deref"] }
2826
flume = "0.11"
2927
futures = "0.3.25"
3028
governor = "0.6.0"
3129
hex = "0.4.3"
32-
hostname = "0.3.1"
3330
http = "1"
3431
http-body-util = "0.1.0"
3532
hyper = { version = "1", features = ["server", "client", "http1"] }
@@ -51,11 +48,8 @@ reqwest = { version = "0.11.19", default-features = false, features = ["rustls-t
5148
ring = "0.17"
5249
rustls = { version = "0.21", default-features = false, features = ["dangerous_configuration"] }
5350
serde = { version = "1", features = ["derive", "rc"] }
54-
serde_bytes = "0.11.12"
55-
serdect = "0.2.0"
5651
smallvec = "1.11.1"
5752
socket2 = "0.5.3"
58-
strum = { version = "0.25.0", features = ["derive"] }
5953
stun-rs = "0.1.5"
6054
surge-ping = "0.8.0"
6155
thiserror = "1"

iroh-net/bench/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ bytes = "1"
1111
hdrhistogram = { version = "7.2", default-features = false }
1212
iroh-net = { path = ".." }
1313
quinn = "0.10"
14-
rcgen = "0.11.1"
15-
rustls = { version = "0.21.0", default-features = false, features = ["quic"] }
1614
clap = { version = "4", features = ["derive"] }
1715
tokio = { version = "1.0.1", features = ["rt", "sync"] }
1816
tracing = "0.1"

0 commit comments

Comments
 (0)