Skip to content

Commit

Permalink
deps: remove unused dependencies (#2170)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Frando authored Apr 11, 2024
1 parent fe6dcac commit b07547b
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 120 deletions.
91 changes: 0 additions & 91 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions iroh-base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ anyhow = { version = "1" }
bao-tree = { version = "0.13", features = ["tokio_fsm", "validate"], default-features = false, optional = true }
data-encoding = { version = "2.3.3", optional = true }
hex = "0.4.3"
multibase = { version = "0.9.1", optional = true }
postcard = { version = "1", default-features = false, features = ["alloc", "use-std", "experimental-derive"], optional = true }
redb = { version = "2.0.0", optional = true }
serde = { version = "1", features = ["derive"] }
Expand Down Expand Up @@ -47,7 +46,7 @@ serde_test = "1.0.176"

[features]
default = ["hash", "base32"]
hash = ["bao-tree", "multibase", "data-encoding", "postcard"]
hash = ["bao-tree", "data-encoding", "postcard"]
base32 = ["data-encoding"]
redb = ["dep:redb"]
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"]
Expand Down
3 changes: 0 additions & 3 deletions iroh-bytes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ anyhow = { version = "1" }
bao-tree = { version = "0.13", features = ["tokio_fsm"], default-features = false }
bytes = { version = "1.4", features = ["serde"] }
chrono = "0.4.31"
data-encoding = "2.3.3"
derive_more = { version = "1.0.0-beta.1", features = ["debug", "display", "deref", "deref_mut", "from", "try_into", "into"] }
flume = "0.11"
futures = "0.3.25"
Expand All @@ -32,7 +31,6 @@ iroh-io = { version = "0.6.0", features = ["stats"] }
iroh-metrics = { version = "0.13.0", path = "../iroh-metrics", optional = true }
iroh-net = { version = "0.13.0", path = "../iroh-net", optional = true }
num_cpus = "1.15.0"
once_cell = "1.17.0"
parking_lot = { version = "0.12.1", optional = true }
postcard = { version = "1", default-features = false, features = ["alloc", "use-std", "experimental-derive"] }
quinn = "0.10"
Expand All @@ -43,7 +41,6 @@ redb_v1 = { package = "redb", version = "1.5.1", optional = true }
reflink-copy = { version = "0.1.8", optional = true }
self_cell = "1.0.1"
serde = { version = "1", features = ["derive"] }
serde-error = "0.1.2"
smallvec = { version = "1.10.0", features = ["serde", "const_new"] }
tempfile = { version = "3.10.0", optional = true }
thiserror = "1"
Expand Down
7 changes: 1 addition & 6 deletions iroh-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ human-time = { version = "0.1.6" }
indicatif = { version = "0.17", features = ["tokio"] }
iroh = { version = "0.13.0", path = "../iroh", features = ["metrics"] }
iroh-metrics = { version = "0.13.0", path = "../iroh-metrics" }
multibase = { version = "0.9.1" }
num_cpus = "1.16.0"
parking_lot = "0.12.1"
postcard = "1.0.8"
portable-atomic = "1"
Expand All @@ -54,13 +52,10 @@ serde = { version = "1.0.197", features = ["derive"] }
strum = { version = "0.26.2", features = ["derive"] }
thiserror = "1.0.58"
time = { version = "0.3", features = ["formatting"] }
toml = { version = "0.8" }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tokio = { version = "1.36.0", features = ["full"] }
tokio-util = { version = "0.7", features = ["codec", "io-util", "io", "time"] }
tempfile = "3.10.1"
url = { version = "2.4", features = ["serde"] }
flume = "0.11.0"

[dev-dependencies]
Expand All @@ -72,4 +67,4 @@ walkdir = "2"

[features]
default = ["metrics"]
metrics = []
metrics = []
2 changes: 0 additions & 2 deletions iroh-gossip/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ workspace = true
anyhow = { version = "1" }
blake3 = { package = "iroh-blake3", version = "1.4.3"}
bytes = { version = "1.4.0", features = ["serde"] }
data-encoding = "2.4.0"
derive_more = { version = "1.0.0-beta.1", features = ["add", "debug", "deref", "display", "from", "try_into", "into"] }
ed25519-dalek = { version = "2.0.0", features = ["serde", "rand_core"] }
indexmap = "2.0"
Expand All @@ -37,7 +36,6 @@ iroh-net = { path = "../iroh-net", version = "0.13.0", optional = true }
quinn = { version = "0.10", optional = true }
tokio = { version = "1", optional = true, features = ["io-util", "sync", "rt", "macros", "net", "fs"] }
tokio-util = { version = "0.7.8", optional = true, features = ["codec"] }
once_cell = "1.18.0"
genawaiter = { version = "0.99.1", default-features = false, features = ["futures03"] }

[dev-dependencies]
Expand Down
6 changes: 0 additions & 6 deletions iroh-net/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,13 @@ aead = { version = "0.5.2", features = ["bytes"] }
anyhow = { version = "1" }
backoff = "0.4.0"
bytes = "1"
curve25519-dalek = "4.0.0"
data-encoding = "2.3.3"
default-net = "0.20"
der = { version = "0.7", features = ["alloc", "derive"] }
derive_more = { version = "1.0.0-beta.1", features = ["debug", "display", "from", "try_into", "deref"] }
flume = "0.11"
futures = "0.3.25"
governor = "0.6.0"
hex = "0.4.3"
hostname = "0.3.1"
http = "1"
http-body-util = "0.1.0"
hyper = { version = "1", features = ["server", "client", "http1"] }
Expand All @@ -51,11 +48,8 @@ reqwest = { version = "0.11.19", default-features = false, features = ["rustls-t
ring = "0.17"
rustls = { version = "0.21", default-features = false, features = ["dangerous_configuration"] }
serde = { version = "1", features = ["derive", "rc"] }
serde_bytes = "0.11.12"
serdect = "0.2.0"
smallvec = "1.11.1"
socket2 = "0.5.3"
strum = { version = "0.25.0", features = ["derive"] }
stun-rs = "0.1.5"
surge-ping = "0.8.0"
thiserror = "1"
Expand Down
2 changes: 0 additions & 2 deletions iroh-net/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ bytes = "1"
hdrhistogram = { version = "7.2", default-features = false }
iroh-net = { path = ".." }
quinn = "0.10"
rcgen = "0.11.1"
rustls = { version = "0.21.0", default-features = false, features = ["quic"] }
clap = { version = "4", features = ["derive"] }
tokio = { version = "1.0.1", features = ["rt", "sync"] }
tracing = "0.1"
Expand Down
Loading

0 comments on commit b07547b

Please sign in to comment.