refactor: remove unused dependencies

Pull-Request: #3530.
This commit is contained in:
Thomas Eizinger
2023-03-01 10:39:01 +11:00
committed by GitHub
parent 7f5b40af17
commit 73013de3f1
9 changed files with 1 additions and 41 deletions

28
Cargo.lock generated
View File

@ -1882,16 +1882,6 @@ dependencies = [
"winapi",
]
[[package]]
name = "if-addrs"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26b24dd0826eee92c56edcda7ff190f2cf52115c49eadb2c2da8063e2673a8c2"
dependencies = [
"libc",
"windows-sys",
]
[[package]]
name = "if-watch"
version = "3.0.0"
@ -1902,7 +1892,7 @@ dependencies = [
"core-foundation",
"fnv",
"futures",
"if-addrs 0.7.0",
"if-addrs",
"ipnet",
"log",
"rtnetlink",
@ -1970,7 +1960,6 @@ dependencies = [
"either",
"env_logger 0.10.0",
"futures",
"if-addrs 0.8.0",
"libp2p",
"log",
"rand 0.8.5",
@ -2153,9 +2142,7 @@ dependencies = [
"libp2p-websocket",
"libp2p-yamux",
"multiaddr",
"parking_lot 0.12.1",
"pin-project",
"smallvec",
"tokio",
]
@ -2232,7 +2219,6 @@ name = "libp2p-dcutr"
version = "0.9.0"
dependencies = [
"asynchronous-codec",
"bytes",
"clap 4.1.6",
"either",
"env_logger 0.10.0",
@ -2613,13 +2599,11 @@ dependencies = [
"libp2p-tcp",
"libp2p-yamux",
"log",
"pin-project",
"prost",
"prost-build",
"prost-codec",
"quickcheck-ext",
"rand 0.8.5",
"smallvec",
"static_assertions",
"thiserror",
"void",
@ -2649,10 +2633,8 @@ dependencies = [
"prost-build",
"prost-codec",
"rand 0.8.5",
"sha2 0.10.6",
"thiserror",
"tokio",
"unsigned-varint",
"void",
]
@ -2662,7 +2644,6 @@ version = "0.24.0"
dependencies = [
"async-std",
"async-trait",
"bytes",
"env_logger 0.10.0",
"futures",
"instant",
@ -2671,10 +2652,8 @@ dependencies = [
"libp2p-swarm",
"libp2p-tcp",
"libp2p-yamux",
"log",
"rand 0.8.5",
"smallvec",
"unsigned-varint",
]
[[package]]
@ -2697,11 +2676,9 @@ dependencies = [
"libp2p-swarm-derive",
"libp2p-yamux",
"log",
"pin-project",
"quickcheck-ext",
"rand 0.8.5",
"smallvec",
"thiserror",
"tokio",
"void",
"wasm-bindgen-futures",
@ -2845,7 +2822,6 @@ dependencies = [
"libp2p-core",
"libp2p-muxer-test-harness",
"log",
"parking_lot 0.12.1",
"thiserror",
"yamux",
]
@ -4893,8 +4869,6 @@ checksum = "d86a8dc7f45e4c1b0d30e43038c38f274e77af056aa5f74b93c2cf9eb3c1c836"
dependencies = [
"asynchronous-codec",
"bytes",
"futures-io",
"futures-util",
]
[[package]]

View File

@ -112,9 +112,7 @@ libp2p-uds = { version = "0.38.0", path = "transports/uds", optional = true }
libp2p-wasm-ext = { version = "0.39.0", path = "transports/wasm-ext", optional = true }
libp2p-yamux = { version = "0.43.0", path = "muxers/yamux", optional = true }
multiaddr = { version = "0.17.0" }
parking_lot = "0.12.0"
pin-project = "1.0.0"
smallvec = "1.6.1"
[target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies]
libp2p-deflate = { version = "0.39.0", path = "transports/deflate", optional = true }

View File

@ -9,7 +9,6 @@ anyhow = "1"
either = "1.8.0"
env_logger = "0.10.0"
futures = "0.3.26"
if-addrs = "0.8.0"
libp2p = { path = "../", features = ["websocket", "quic", "mplex", "yamux", "tcp", "tokio", "ping", "noise", "tls", "dns", "rsa", "macros", "webrtc"] }
log = "0.4"
rand = "0.8.5"

View File

@ -13,7 +13,6 @@ categories = ["network-programming", "asynchronous"]
[dependencies]
futures = "0.3.26"
libp2p-core = { version = "0.39.0", path = "../../core" }
parking_lot = "0.12"
thiserror = "1.0"
yamux = "0.10.0"
log = "0.4"

View File

@ -12,7 +12,6 @@ categories = ["network-programming", "asynchronous"]
[dependencies]
asynchronous-codec = "0.6"
bytes = "1"
either = "1.6.0"
futures = "0.3.26"
futures-timer = "3.0"

View File

@ -20,11 +20,9 @@ instant = "0.1.11"
libp2p-core = { version = "0.39.0", path = "../../core" }
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
log = "0.4"
pin-project = "1"
prost-codec = { version = "0.3", path = "../../misc/prost-codec" }
prost = "0.11"
rand = "0.8.4"
smallvec = "1.6.1"
static_assertions = "1"
thiserror = "1.0"
void = "1"

View File

@ -22,9 +22,7 @@ log = "0.4"
prost = "0.11"
prost-codec = { version = "0.3.0", path = "../../misc/prost-codec" }
rand = "0.8"
sha2 = "0.10"
thiserror = "1"
unsigned-varint = { version = "0.7", features = ["asynchronous_codec"] }
void = "1"
[dev-dependencies]

View File

@ -12,15 +12,12 @@ categories = ["network-programming", "asynchronous"]
[dependencies]
async-trait = "0.1"
bytes = "1"
futures = "0.3.26"
instant = "0.1.11"
libp2p-core = { version = "0.39.0", path = "../../core" }
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
log = "0.4.11"
rand = "0.8"
smallvec = "1.6.1"
unsigned-varint = { version = "0.7", features = ["std", "futures"] }
[dev-dependencies]
async-std = "1.6.2"

View File

@ -19,10 +19,8 @@ instant = "0.1.11"
libp2p-core = { version = "0.39.0", path = "../core" }
libp2p-swarm-derive = { version = "0.32.0", path = "../swarm-derive", optional = true }
log = "0.4"
pin-project = "1.0.0"
rand = "0.8"
smallvec = "1.6.1"
thiserror = "1.0"
void = "1"
wasm-bindgen-futures = { version = "0.4.34", optional = true }
getrandom = { version = "0.2.3", features = ["js"], optional = true } # Explicit dependency to be used in `wasm-bindgen` feature