From 8b13e9ba1611faead606f4a3de7fa11b165d2c5a Mon Sep 17 00:00:00 2001 From: drHuangMHT Date: Tue, 9 Apr 2024 07:42:35 +0800 Subject: [PATCH] promote futures to workspace dependency --- Cargo.toml | 1 + core/Cargo.toml | 2 +- examples/autonat/Cargo.toml | 2 +- examples/browser-webrtc/Cargo.toml | 2 +- examples/chat/Cargo.toml | 2 +- examples/dcutr/Cargo.toml | 2 +- examples/distributed-key-value-store/Cargo.toml | 2 +- examples/file-sharing/Cargo.toml | 2 +- examples/identify/Cargo.toml | 2 +- examples/ipfs-kad/Cargo.toml | 2 +- examples/ipfs-private/Cargo.toml | 2 +- examples/metrics/Cargo.toml | 2 +- examples/ping/Cargo.toml | 2 +- examples/relay-server/Cargo.toml | 2 +- examples/rendezvous/Cargo.toml | 2 +- examples/stream/Cargo.toml | 2 +- examples/upnp/Cargo.toml | 2 +- hole-punching-tests/Cargo.toml | 2 +- interop-tests/Cargo.toml | 2 +- libp2p/Cargo.toml | 2 +- misc/metrics/Cargo.toml | 2 +- misc/multistream-select/Cargo.toml | 2 +- misc/quick-protobuf-codec/Cargo.toml | 2 +- misc/rw-stream-sink/Cargo.toml | 2 +- misc/server/Cargo.toml | 2 +- misc/webrtc-utils/Cargo.toml | 2 +- muxers/mplex/Cargo.toml | 4 ++-- muxers/test-harness/Cargo.toml | 2 +- muxers/yamux/Cargo.toml | 2 +- protocols/autonat/Cargo.toml | 2 +- protocols/dcutr/Cargo.toml | 2 +- protocols/floodsub/Cargo.toml | 2 +- protocols/gossipsub/Cargo.toml | 2 +- protocols/identify/Cargo.toml | 2 +- protocols/kad/Cargo.toml | 2 +- protocols/mdns/Cargo.toml | 2 +- protocols/perf/Cargo.toml | 2 +- protocols/ping/Cargo.toml | 2 +- protocols/relay/Cargo.toml | 2 +- protocols/rendezvous/Cargo.toml | 2 +- protocols/request-response/Cargo.toml | 2 +- protocols/stream/Cargo.toml | 2 +- protocols/upnp/Cargo.toml | 2 +- swarm-test/Cargo.toml | 2 +- swarm/Cargo.toml | 4 ++-- transports/dns/Cargo.toml | 2 +- transports/noise/Cargo.toml | 2 +- transports/plaintext/Cargo.toml | 2 +- transports/pnet/Cargo.toml | 2 +- transports/quic/Cargo.toml | 2 +- transports/tcp/Cargo.toml | 2 +- transports/tls/Cargo.toml | 2 +- transports/uds/Cargo.toml | 2 +- transports/webrtc-websys/Cargo.toml | 2 +- transports/webrtc/Cargo.toml | 2 +- transports/websocket-websys/Cargo.toml | 2 +- transports/websocket/Cargo.toml | 2 +- transports/webtransport-websys/Cargo.toml | 2 +- wasm-tests/webtransport-tests/Cargo.toml | 2 +- 59 files changed, 61 insertions(+), 60 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index da05125aa2c..137a52f61d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -124,6 +124,7 @@ quickcheck = { package = "quickcheck-ext", path = "misc/quickcheck-ext" } rw-stream-sink = { version = "0.4.0", path = "misc/rw-stream-sink" } unsigned-varint = { version = "0.8.0" } tracing = "0.1.37" +futures = "0.3.30" [patch.crates-io] diff --git a/core/Cargo.toml b/core/Cargo.toml index 65b7728b7ba..d829f4dc884 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] either = "1.9" fnv = "1.0" -futures = { version = "0.3.30", features = ["executor", "thread-pool"] } +futures = { workspace = true, features = ["executor", "thread-pool"] } futures-timer = "3" instant = "0.1.12" libp2p-identity = { workspace = true, features = ["peerid", "ed25519"] } diff --git a/examples/autonat/Cargo.toml b/examples/autonat/Cargo.toml index f128347bf04..fc7be54cc8e 100644 --- a/examples/autonat/Cargo.toml +++ b/examples/autonat/Cargo.toml @@ -11,7 +11,7 @@ release = false [dependencies] tokio = { version = "1.37", features = ["full"] } clap = { version = "4.5.4", features = ["derive"] } -futures = "0.3.30" +futures = { workspace = true } libp2p = { path = "../../libp2p", features = ["tokio", "tcp", "noise", "yamux", "autonat", "identify", "macros"] } tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/examples/browser-webrtc/Cargo.toml b/examples/browser-webrtc/Cargo.toml index f5a70cfd865..f8219d4b3f3 100644 --- a/examples/browser-webrtc/Cargo.toml +++ b/examples/browser-webrtc/Cargo.toml @@ -17,7 +17,7 @@ crate-type = ["cdylib"] [dependencies] anyhow = "1.0.81" -futures = "0.3.30" +futures = { workspace = true } rand = "0.8" tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/examples/chat/Cargo.toml b/examples/chat/Cargo.toml index d6f083962f7..a5dacaf65a4 100644 --- a/examples/chat/Cargo.toml +++ b/examples/chat/Cargo.toml @@ -11,7 +11,7 @@ release = false [dependencies] tokio = { version = "1.37", features = ["full"] } async-trait = "0.1" -futures = "0.3.30" +futures = { workspace = true } libp2p = { path = "../../libp2p", features = [ "tokio", "gossipsub", "mdns", "noise", "macros", "tcp", "yamux", "quic"] } tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/examples/dcutr/Cargo.toml b/examples/dcutr/Cargo.toml index 3d4d3a5c154..541f2d5e8f9 100644 --- a/examples/dcutr/Cargo.toml +++ b/examples/dcutr/Cargo.toml @@ -10,7 +10,7 @@ release = false [dependencies] clap = { version = "4.5.4", features = ["derive"] } -futures = "0.3.30" +futures = { workspace = true } futures-timer = "3.0" libp2p = { path = "../../libp2p", features = [ "dns", "dcutr", "identify", "macros", "noise", "ping", "quic", "relay", "rendezvous", "tcp", "tokio", "yamux"] } log = "0.4" diff --git a/examples/distributed-key-value-store/Cargo.toml b/examples/distributed-key-value-store/Cargo.toml index 809a573cc08..4755b499709 100644 --- a/examples/distributed-key-value-store/Cargo.toml +++ b/examples/distributed-key-value-store/Cargo.toml @@ -11,7 +11,7 @@ release = false [dependencies] async-std = { version = "1.12", features = ["attributes"] } async-trait = "0.1" -futures = "0.3.30" +futures = { workspace = true } libp2p = { path = "../../libp2p", features = [ "async-std", "dns", "kad", "mdns", "noise", "macros", "tcp", "yamux"] } tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/examples/file-sharing/Cargo.toml b/examples/file-sharing/Cargo.toml index fdc4c7b26fd..269b68e4f66 100644 --- a/examples/file-sharing/Cargo.toml +++ b/examples/file-sharing/Cargo.toml @@ -12,7 +12,7 @@ release = false serde = { version = "1.0", features = ["derive"] } tokio = { version = "1.37.0", features = ["full"] } clap = { version = "4.5.4", features = ["derive"] } -futures = "0.3.30" +futures = { workspace = true } libp2p = { path = "../../libp2p", features = [ "tokio", "cbor", "dns", "kad", "noise", "macros", "request-response", "tcp", "websocket", "yamux"] } tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/examples/identify/Cargo.toml b/examples/identify/Cargo.toml index cf2996e45cd..8ed26ba5fc2 100644 --- a/examples/identify/Cargo.toml +++ b/examples/identify/Cargo.toml @@ -11,7 +11,7 @@ release = false [dependencies] async-std = { version = "1.12", features = ["attributes"] } async-trait = "0.1" -futures = "0.3.30" +futures = { workspace = true } libp2p = { path = "../../libp2p", features = ["async-std", "dns", "dcutr", "identify", "macros", "noise", "ping", "relay", "rendezvous", "tcp", "tokio","yamux"] } tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/examples/ipfs-kad/Cargo.toml b/examples/ipfs-kad/Cargo.toml index d27c68c0e59..a73ae2942f9 100644 --- a/examples/ipfs-kad/Cargo.toml +++ b/examples/ipfs-kad/Cargo.toml @@ -13,7 +13,7 @@ tokio = { version = "1.37", features = ["rt-multi-thread", "macros"] } async-trait = "0.1" clap = { version = "4.5.4", features = ["derive"] } env_logger = "0.10" -futures = "0.3.30" +futures = { workspace = true } anyhow = "1.0.81" libp2p = { path = "../../libp2p", features = [ "tokio", "dns", "kad", "noise", "tcp", "yamux", "rsa"] } tracing = { workspace = true } diff --git a/examples/ipfs-private/Cargo.toml b/examples/ipfs-private/Cargo.toml index cf0d2689ced..b3a299f87cc 100644 --- a/examples/ipfs-private/Cargo.toml +++ b/examples/ipfs-private/Cargo.toml @@ -12,7 +12,7 @@ release = false tokio = { version = "1.37", features = ["rt-multi-thread", "macros", "io-std"] } async-trait = "0.1" either = "1.9" -futures = "0.3.30" +futures = { workspace = true } libp2p = { path = "../../libp2p", features = [ "tokio", "gossipsub", "dns", "identify", "kad", "macros", "noise", "ping", "pnet", "tcp", "websocket", "yamux"] } tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/examples/metrics/Cargo.toml b/examples/metrics/Cargo.toml index e84b4819897..563579157ed 100644 --- a/examples/metrics/Cargo.toml +++ b/examples/metrics/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT" release = false [dependencies] -futures = "0.3.30" +futures = { workspace = true } hyper = { version = "0.14", features = ["server", "tcp", "http1"] } libp2p = { path = "../../libp2p", features = ["tokio", "metrics", "ping", "noise", "identify", "tcp", "yamux", "macros"] } opentelemetry = { version = "0.22.0", features = ["metrics"] } diff --git a/examples/ping/Cargo.toml b/examples/ping/Cargo.toml index 6c74f4619fd..95bbe591c06 100644 --- a/examples/ping/Cargo.toml +++ b/examples/ping/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT" release = false [dependencies] -futures = "0.3.30" +futures = { workspace = true } libp2p = { path = "../../libp2p", features = ["noise", "ping", "tcp", "tokio", "yamux"] } tokio = { version = "1.37.0", features = ["full"] } tracing = { workspace = true } diff --git a/examples/relay-server/Cargo.toml b/examples/relay-server/Cargo.toml index 664c52351cb..49b58c9b6bf 100644 --- a/examples/relay-server/Cargo.toml +++ b/examples/relay-server/Cargo.toml @@ -12,7 +12,7 @@ release = false clap = { version = "4.5.4", features = ["derive"] } async-std = { version = "1.12", features = ["attributes"] } async-trait = "0.1" -futures = "0.3.30" +futures = { workspace = true } libp2p = { path = "../../libp2p", features = [ "async-std", "noise", "macros", "ping", "tcp", "identify", "yamux", "relay", "quic"] } tracing = { workspace = true } tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/examples/rendezvous/Cargo.toml b/examples/rendezvous/Cargo.toml index aecacbd7fa6..7f05138ce74 100644 --- a/examples/rendezvous/Cargo.toml +++ b/examples/rendezvous/Cargo.toml @@ -11,7 +11,7 @@ release = false [dependencies] async-std = { version = "1.12", features = ["attributes"] } async-trait = "0.1" -futures = "0.3.30" +futures = { workspace = true } libp2p = { path = "../../libp2p", features = [ "async-std", "identify", "macros", "noise", "ping", "rendezvous", "tcp", "tokio", "yamux"] } tokio = { version = "1.37", features = ["rt-multi-thread", "macros", "time"] } tracing = { workspace = true } diff --git a/examples/stream/Cargo.toml b/examples/stream/Cargo.toml index 1e33991f27e..263508978ee 100644 --- a/examples/stream/Cargo.toml +++ b/examples/stream/Cargo.toml @@ -10,7 +10,7 @@ release = false [dependencies] anyhow = "1" -futures = "0.3.29" +futures = { workspace = true } libp2p = { path = "../../libp2p", features = [ "tokio", "quic"] } libp2p-stream = { path = "../../protocols/stream", version = "0.1.0-alpha" } rand = "0.8" diff --git a/examples/upnp/Cargo.toml b/examples/upnp/Cargo.toml index db9825c8742..0370df4f0a4 100644 --- a/examples/upnp/Cargo.toml +++ b/examples/upnp/Cargo.toml @@ -10,7 +10,7 @@ release = false [dependencies] tokio = { version = "1", features = ["rt-multi-thread", "macros"] } -futures = "0.3.30" +futures = { workspace = true } libp2p = { path = "../../libp2p", features = ["tokio", "dns", "macros", "noise", "ping", "tcp", "yamux", "upnp"] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/hole-punching-tests/Cargo.toml b/hole-punching-tests/Cargo.toml index 75ed1e31ebe..2edfb6fa22c 100644 --- a/hole-punching-tests/Cargo.toml +++ b/hole-punching-tests/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" [dependencies] anyhow = "1" env_logger = "0.10.2" -futures = "0.3.30" +futures = { workspace = true } libp2p = { path = "../libp2p", features = ["tokio", "dcutr", "identify", "macros", "noise", "ping", "relay", "tcp", "yamux", "quic"] } tracing = { workspace = true } redis = { version = "0.23.0", default-features = false, features = ["tokio-comp"] } diff --git a/interop-tests/Cargo.toml b/interop-tests/Cargo.toml index 9bb08682d6f..f50de298fe6 100644 --- a/interop-tests/Cargo.toml +++ b/interop-tests/Cargo.toml @@ -14,7 +14,7 @@ crate-type = ["cdylib", "rlib"] [dependencies] anyhow = "1" either = "1.9.0" -futures = "0.3.30" +futures = { workspace = true } rand = "0.8.5" serde = { version = "1", features = ["derive"] } tracing = { workspace = true } diff --git a/libp2p/Cargo.toml b/libp2p/Cargo.toml index fcec353e3f6..ebc09061e56 100644 --- a/libp2p/Cargo.toml +++ b/libp2p/Cargo.toml @@ -92,7 +92,7 @@ upnp = ["dep:libp2p-upnp"] [dependencies] bytes = "1" either = "1.9.0" -futures = "0.3.26" +futures = { workspace = true } futures-timer = "3.0.2" # Explicit dependency to be used in `wasm-bindgen` feature getrandom = "0.2.3" # Explicit dependency to be used in `wasm-bindgen` feature instant = "0.1.12" # Explicit dependency to be used in `wasm-bindgen` feature diff --git a/misc/metrics/Cargo.toml b/misc/metrics/Cargo.toml index b9952e36ba3..4901a3852d7 100644 --- a/misc/metrics/Cargo.toml +++ b/misc/metrics/Cargo.toml @@ -19,7 +19,7 @@ ping = ["libp2p-ping"] relay = ["libp2p-relay"] [dependencies] -futures = "0.3.30" +futures = { workspace = true } instant = "0.1.12" libp2p-core = { workspace = true } libp2p-dcutr = { workspace = true, optional = true } diff --git a/misc/multistream-select/Cargo.toml b/misc/multistream-select/Cargo.toml index 080bd6ee289..3d40f50d967 100644 --- a/misc/multistream-select/Cargo.toml +++ b/misc/multistream-select/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] bytes = "1" -futures = "0.3" +futures = { workspace = true } tracing = { workspace = true } pin-project = "1.1.5" smallvec = "1.13.2" diff --git a/misc/quick-protobuf-codec/Cargo.toml b/misc/quick-protobuf-codec/Cargo.toml index bc07b86b427..a98ffa5308f 100644 --- a/misc/quick-protobuf-codec/Cargo.toml +++ b/misc/quick-protobuf-codec/Cargo.toml @@ -19,7 +19,7 @@ quick-protobuf = "0.8" [dev-dependencies] criterion = "0.5.1" -futures = "0.3.30" +futures = { workspace = true } quickcheck = { workspace = true } [[bench]] diff --git a/misc/rw-stream-sink/Cargo.toml b/misc/rw-stream-sink/Cargo.toml index 8de0555582c..557163c438a 100644 --- a/misc/rw-stream-sink/Cargo.toml +++ b/misc/rw-stream-sink/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["networking"] categories = ["network-programming", "asynchronous"] [dependencies] -futures = "0.3.30" +futures = { workspace = true } pin-project = "1.1.5" static_assertions = "1" diff --git a/misc/server/Cargo.toml b/misc/server/Cargo.toml index 74576ad39f5..af61514c20c 100644 --- a/misc/server/Cargo.toml +++ b/misc/server/Cargo.toml @@ -13,7 +13,7 @@ license = "MIT" [dependencies] base64 = "0.22" clap = { version = "4.5.4", features = ["derive"] } -futures = "0.3" +futures = { workspace = true } futures-timer = "3" hyper = { version = "0.14", features = ["server", "tcp", "http1"] } libp2p = { workspace = true, features = ["autonat", "dns", "tokio", "noise", "tcp", "yamux", "identify", "kad", "ping", "relay", "metrics", "rsa", "macros", "quic", "websocket"] } diff --git a/misc/webrtc-utils/Cargo.toml b/misc/webrtc-utils/Cargo.toml index b28ed74a4b0..f548773b8dd 100644 --- a/misc/webrtc-utils/Cargo.toml +++ b/misc/webrtc-utils/Cargo.toml @@ -13,7 +13,7 @@ publish = true [dependencies] asynchronous-codec = { workspace = true } bytes = "1" -futures = "0.3" +futures = { workspace = true } hex = "0.4" libp2p-core = { workspace = true } libp2p-identity = { workspace = true } diff --git a/muxers/mplex/Cargo.toml b/muxers/mplex/Cargo.toml index 4e612939373..52920479158 100644 --- a/muxers/mplex/Cargo.toml +++ b/muxers/mplex/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] bytes = "1" -futures = "0.3.30" +futures = { workspace = true } asynchronous-codec = { workspace = true } libp2p-core = { workspace = true } libp2p-identity = { workspace = true } @@ -26,7 +26,7 @@ unsigned-varint = { workspace = true, features = ["asynchronous_codec"] } [dev-dependencies] async-std = { version = "1.7.0", features = ["attributes"] } criterion = "0.5" -futures = "0.3" +futures = { workspace = true } libp2p-identity = { workspace = true, features = ["rand"] } libp2p-muxer-test-harness = { path = "../test-harness" } libp2p-plaintext = { workspace = true } diff --git a/muxers/test-harness/Cargo.toml b/muxers/test-harness/Cargo.toml index 421292cf0a7..f4632437ce6 100644 --- a/muxers/test-harness/Cargo.toml +++ b/muxers/test-harness/Cargo.toml @@ -12,7 +12,7 @@ release = false [dependencies] libp2p-core = { workspace = true } -futures = "0.3.30" +futures = { workspace = true } futures-timer = "3.0.3" futures_ringbuf = "0.4.0" tracing = { workspace = true } diff --git a/muxers/yamux/Cargo.toml b/muxers/yamux/Cargo.toml index 7c36faf022a..ddb9424895b 100644 --- a/muxers/yamux/Cargo.toml +++ b/muxers/yamux/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] either = "1" -futures = "0.3.30" +futures = { workspace = true } libp2p-core = { workspace = true } thiserror = "1.0" yamux012 = { version = "0.12.1", package = "yamux" } diff --git a/protocols/autonat/Cargo.toml b/protocols/autonat/Cargo.toml index 2780016cebd..3dd11be4366 100644 --- a/protocols/autonat/Cargo.toml +++ b/protocols/autonat/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] async-trait = "0.1" -futures = "0.3" +futures = { workspace = true } futures-timer = "3.0" instant = "0.1" libp2p-core = { workspace = true } diff --git a/protocols/dcutr/Cargo.toml b/protocols/dcutr/Cargo.toml index 414eff4775b..2abefedbb17 100644 --- a/protocols/dcutr/Cargo.toml +++ b/protocols/dcutr/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] asynchronous-codec = { workspace = true } either = "1.9.0" -futures = "0.3.30" +futures = { workspace = true } futures-timer = "3.0" instant = "0.1.12" libp2p-core = { workspace = true } diff --git a/protocols/floodsub/Cargo.toml b/protocols/floodsub/Cargo.toml index fe1b509735d..876412ae8c6 100644 --- a/protocols/floodsub/Cargo.toml +++ b/protocols/floodsub/Cargo.toml @@ -15,7 +15,7 @@ asynchronous-codec = { workspace = true } cuckoofilter = "0.5.0" fnv = "1.0" bytes = "1.6" -futures = "0.3.30" +futures = { workspace = true } libp2p-core = { workspace = true } libp2p-swarm = { workspace = true } libp2p-identity = { workspace = true } diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml index 22e11180439..dcb3f18d30d 100644 --- a/protocols/gossipsub/Cargo.toml +++ b/protocols/gossipsub/Cargo.toml @@ -20,7 +20,7 @@ byteorder = "1.5.0" bytes = "1.6" either = "1.9" fnv = "1.0.7" -futures = "0.3.30" +futures = { workspace = true } futures-ticker = "0.0.3" getrandom = "0.2.12" hex_fmt = "0.3.0" diff --git a/protocols/identify/Cargo.toml b/protocols/identify/Cargo.toml index a794d1e0409..55ff751d1c9 100644 --- a/protocols/identify/Cargo.toml +++ b/protocols/identify/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] asynchronous-codec = { workspace = true } -futures = "0.3.30" +futures = { workspace = true } futures-timer = "3.0.3" futures-bounded = { workspace = true } libp2p-core = { workspace = true } diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml index fb89337b61e..4f8209873e0 100644 --- a/protocols/kad/Cargo.toml +++ b/protocols/kad/Cargo.toml @@ -16,7 +16,7 @@ bytes = "1" either = "1.9" fnv = "1.0" asynchronous-codec = { workspace = true } -futures = "0.3.30" +futures = { workspace = true } libp2p-core = { workspace = true } libp2p-swarm = { workspace = true } futures-bounded = { workspace = true } diff --git a/protocols/mdns/Cargo.toml b/protocols/mdns/Cargo.toml index c2dba2cf2f6..1d3afec90cd 100644 --- a/protocols/mdns/Cargo.toml +++ b/protocols/mdns/Cargo.toml @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] async-std = { version = "1.12.0", optional = true } async-io = { version = "2.3.2", optional = true } data-encoding = "2.5.0" -futures = "0.3.30" +futures = { workspace = true } if-watch = "3.2.0" libp2p-core = { workspace = true } libp2p-swarm = { workspace = true } diff --git a/protocols/perf/Cargo.toml b/protocols/perf/Cargo.toml index b73c7d599cb..38c9991ab3b 100644 --- a/protocols/perf/Cargo.toml +++ b/protocols/perf/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] anyhow = "1" clap = { version = "4.5.4", features = ["derive"] } -futures = "0.3.30" +futures = { workspace = true } futures-bounded = { workspace = true } futures-timer = "3.0" instant = "0.1.12" diff --git a/protocols/ping/Cargo.toml b/protocols/ping/Cargo.toml index 5d982c90b7f..b484106e57e 100644 --- a/protocols/ping/Cargo.toml +++ b/protocols/ping/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] either = "1.9.0" -futures = "0.3.30" +futures = { workspace = true } futures-timer = "3.0.3" instant = "0.1.12" libp2p-core = { workspace = true } diff --git a/protocols/relay/Cargo.toml b/protocols/relay/Cargo.toml index 4183e0facd3..eb587f4ebfb 100644 --- a/protocols/relay/Cargo.toml +++ b/protocols/relay/Cargo.toml @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] asynchronous-codec = { workspace = true } bytes = "1" either = "1.9.0" -futures = "0.3.30" +futures = { workspace = true } futures-timer = "3" futures-bounded = { workspace = true } instant = "0.1.12" diff --git a/protocols/rendezvous/Cargo.toml b/protocols/rendezvous/Cargo.toml index e2424a9258b..8551c69b333 100644 --- a/protocols/rendezvous/Cargo.toml +++ b/protocols/rendezvous/Cargo.toml @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] asynchronous-codec = { workspace = true } async-trait = "0.1" bimap = "0.6.3" -futures = { version = "0.3", default-features = false, features = ["std"] } +futures = { workspace = true, default-features = false, features = ["std"] } futures-timer = "3.0.3" instant = "0.1.12" libp2p-core = { workspace = true } diff --git a/protocols/request-response/Cargo.toml b/protocols/request-response/Cargo.toml index c3c43eec286..769014a17f5 100644 --- a/protocols/request-response/Cargo.toml +++ b/protocols/request-response/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] async-trait = "0.1" cbor4ii = { version = "0.3.2", features = ["serde1", "use_std"], optional = true } -futures = "0.3.30" +futures = { workspace = true } instant = "0.1.12" libp2p-core = { workspace = true } libp2p-swarm = { workspace = true } diff --git a/protocols/stream/Cargo.toml b/protocols/stream/Cargo.toml index f58daff0bb6..7a1033e4457 100644 --- a/protocols/stream/Cargo.toml +++ b/protocols/stream/Cargo.toml @@ -10,7 +10,7 @@ keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [dependencies] -futures = "0.3.29" +futures = { workspace = true } libp2p-core = { workspace = true } libp2p-identity = { workspace = true, features = ["peerid"] } libp2p-swarm = { workspace = true } diff --git a/protocols/upnp/Cargo.toml b/protocols/upnp/Cargo.toml index 116941cb75f..d354b070ef5 100644 --- a/protocols/upnp/Cargo.toml +++ b/protocols/upnp/Cargo.toml @@ -11,7 +11,7 @@ categories = ["network-programming", "asynchronous"] publish = true [dependencies] -futures = "0.3.30" +futures = { workspace = true } futures-timer = "3.0.3" igd-next = "0.14.3" libp2p-core = { workspace = true } diff --git a/swarm-test/Cargo.toml b/swarm-test/Cargo.toml index ad7b05264b8..c2b240368ae 100644 --- a/swarm-test/Cargo.toml +++ b/swarm-test/Cargo.toml @@ -19,7 +19,7 @@ libp2p-plaintext = { workspace = true } libp2p-swarm = { workspace = true, features = ["async-std"] } libp2p-tcp = { workspace = true, features = ["async-io"] } libp2p-yamux = { workspace = true } -futures = "0.3.30" +futures = { workspace = true } rand = "0.8.5" tracing = { workspace = true } futures-timer = "3.0.3" diff --git a/swarm/Cargo.toml b/swarm/Cargo.toml index 3601e03d368..0bb0ea01563 100644 --- a/swarm/Cargo.toml +++ b/swarm/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] either = "1.9.0" fnv = "1.0" -futures = "0.3.30" +futures = { workspace = true } futures-timer = "3.0.3" getrandom = { version = "0.2.12", features = ["js"], optional = true } # Explicit dependency to be used in `wasm-bindgen` feature instant = "0.1.12" @@ -42,7 +42,7 @@ wasm-bindgen = ["dep:wasm-bindgen-futures", "dep:getrandom"] [dev-dependencies] async-std = { version = "1.6.2", features = ["attributes"] } either = "1.9.0" -futures = "0.3.30" +futures = { workspace = true } libp2p-identify = { path = "../protocols/identify" } # Using `path` here because this is a cyclic dev-dependency which otherwise breaks releasing. libp2p-identity = { workspace = true, features = ["ed25519"] } libp2p-kad = { path = "../protocols/kad" } # Using `path` here because this is a cyclic dev-dependency which otherwise breaks releasing. diff --git a/transports/dns/Cargo.toml b/transports/dns/Cargo.toml index b06ab6d7d8b..bbd619f65b3 100644 --- a/transports/dns/Cargo.toml +++ b/transports/dns/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] async-std-resolver = { version = "0.24", optional = true } async-trait = "0.1.79" -futures = "0.3.30" +futures = { workspace = true } libp2p-core = { workspace = true } libp2p-identity = { workspace = true } parking_lot = "0.12.0" diff --git a/transports/noise/Cargo.toml b/transports/noise/Cargo.toml index 130fce156a9..3e82a9ac947 100644 --- a/transports/noise/Cargo.toml +++ b/transports/noise/Cargo.toml @@ -12,7 +12,7 @@ repository = "https://github.com/libp2p/rust-libp2p" asynchronous-codec = { workspace = true } bytes = "1" curve25519-dalek = "4.1.2" -futures = "0.3.30" +futures = { workspace = true } libp2p-core = { workspace = true } libp2p-identity = { workspace = true, features = ["ed25519"] } multiaddr = { workspace = true } diff --git a/transports/plaintext/Cargo.toml b/transports/plaintext/Cargo.toml index 9a4576ef29f..33e7ae1ab5c 100644 --- a/transports/plaintext/Cargo.toml +++ b/transports/plaintext/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] asynchronous-codec = { workspace = true } bytes = "1" -futures = "0.3.30" +futures = { workspace = true } libp2p-core = { workspace = true } libp2p-identity = { workspace = true } quick-protobuf = "0.8" diff --git a/transports/pnet/Cargo.toml b/transports/pnet/Cargo.toml index e13d9dbd0d4..15829044c48 100644 --- a/transports/pnet/Cargo.toml +++ b/transports/pnet/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [dependencies] -futures = "0.3.30" +futures = { workspace = true } salsa20 = "0.10" sha3 = "0.10" tracing = { workspace = true } diff --git a/transports/quic/Cargo.toml b/transports/quic/Cargo.toml index f6fad337bb7..fc8c8fbcee1 100644 --- a/transports/quic/Cargo.toml +++ b/transports/quic/Cargo.toml @@ -11,7 +11,7 @@ license = "MIT" [dependencies] async-std = { version = "1.12.0", optional = true } bytes = "1.6.0" -futures = "0.3.30" +futures = { workspace = true } futures-timer = "3.0.3" if-watch = "3.2.0" libp2p-core = { workspace = true } diff --git a/transports/tcp/Cargo.toml b/transports/tcp/Cargo.toml index 2b6ecf7189b..8b05b717815 100644 --- a/transports/tcp/Cargo.toml +++ b/transports/tcp/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] async-io = { version = "2.3.2", optional = true } -futures = "0.3.30" +futures = { workspace = true } futures-timer = "3.0" if-watch = "3.2.0" libc = "0.2.153" diff --git a/transports/tls/Cargo.toml b/transports/tls/Cargo.toml index 4fed28c64d4..d529a52b6d9 100644 --- a/transports/tls/Cargo.toml +++ b/transports/tls/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT" exclude = ["src/test_assets"] [dependencies] -futures = { version = "0.3.30", default-features = false } +futures = { workspace = true, default-features = false } futures-rustls = "0.24.0" libp2p-core = { workspace = true } libp2p-identity = { workspace = true } diff --git a/transports/uds/Cargo.toml b/transports/uds/Cargo.toml index b99e869b1df..498a104eacb 100644 --- a/transports/uds/Cargo.toml +++ b/transports/uds/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] async-std = { version = "1.6.2", optional = true } libp2p-core = { workspace = true } -futures = "0.3.30" +futures = { workspace = true } tokio = { version = "1.37", default-features = false, features = ["net"], optional = true } tracing = { workspace = true } diff --git a/transports/webrtc-websys/Cargo.toml b/transports/webrtc-websys/Cargo.toml index 12d825b2ce7..25eb2573dbf 100644 --- a/transports/webrtc-websys/Cargo.toml +++ b/transports/webrtc-websys/Cargo.toml @@ -13,7 +13,7 @@ publish = true [dependencies] bytes = "1" -futures = "0.3" +futures = { workspace = true } getrandom = { version = "0.2.12", features = ["js"] } hex = "0.4.3" js-sys = { version = "0.3" } diff --git a/transports/webrtc/Cargo.toml b/transports/webrtc/Cargo.toml index d9d7f8c97d6..2759197ba92 100644 --- a/transports/webrtc/Cargo.toml +++ b/transports/webrtc/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] async-trait = "0.1" bytes = "1" -futures = "0.3" +futures = { workspace = true } futures-timer = "3" hex = "0.4" if-watch = "3.2" diff --git a/transports/websocket-websys/Cargo.toml b/transports/websocket-websys/Cargo.toml index 7f3c64a826a..8d0e3988100 100644 --- a/transports/websocket-websys/Cargo.toml +++ b/transports/websocket-websys/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] bytes = "1.6.0" -futures = "0.3.30" +futures = { workspace = true } js-sys = "0.3.69" libp2p-core = { workspace = true } tracing = { workspace = true } diff --git a/transports/websocket/Cargo.toml b/transports/websocket/Cargo.toml index f04c42084c1..994f67d2474 100644 --- a/transports/websocket/Cargo.toml +++ b/transports/websocket/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] futures-rustls = "0.24.0" either = "1.9.0" -futures = "0.3.30" +futures = { workspace = true } libp2p-core = { workspace = true } libp2p-identity = { workspace = true } parking_lot = "0.12.0" diff --git a/transports/webtransport-websys/Cargo.toml b/transports/webtransport-websys/Cargo.toml index 7d844684f0d..117c2c4334f 100644 --- a/transports/webtransport-websys/Cargo.toml +++ b/transports/webtransport-websys/Cargo.toml @@ -14,7 +14,7 @@ keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [dependencies] -futures = "0.3.30" +futures = { workspace = true } js-sys = "0.3.69" libp2p-core = { workspace = true } libp2p-identity = { workspace = true } diff --git a/wasm-tests/webtransport-tests/Cargo.toml b/wasm-tests/webtransport-tests/Cargo.toml index 8b0cb85c3be..0c36a53db2e 100644 --- a/wasm-tests/webtransport-tests/Cargo.toml +++ b/wasm-tests/webtransport-tests/Cargo.toml @@ -9,7 +9,7 @@ publish = false release = false [dependencies] -futures = "0.3.30" +futures = { workspace = true } getrandom = { version = "0.2.12", features = ["js"] } libp2p-core = { workspace = true } libp2p-identity = { workspace = true, features = ["rand"] }