diff --git a/Cargo.toml b/Cargo.toml index 796daaae0b9..dd8efeddb12 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -125,6 +125,7 @@ rw-stream-sink = { version = "0.4.0", path = "misc/rw-stream-sink" } unsigned-varint = { version = "0.8.0" } tokio = { version = "1.37", default-features = false } tracing = "0.1.37" +futures = "0.3.30" [patch.crates-io] diff --git a/core/Cargo.toml b/core/Cargo.toml index 554d0091866..92e6e02351a 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] either = "1.11" 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 89cc951c4c8..80ee30db72b 100644 --- a/examples/autonat/Cargo.toml +++ b/examples/autonat/Cargo.toml @@ -11,7 +11,7 @@ release = false [dependencies] tokio = { workspace = true, 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 70010c5e1b1..ec95b75287f 100644 --- a/examples/browser-webrtc/Cargo.toml +++ b/examples/browser-webrtc/Cargo.toml @@ -17,7 +17,7 @@ crate-type = ["cdylib"] [dependencies] anyhow = "1.0.82" -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 0c7241eae52..b276791d39b 100644 --- a/examples/chat/Cargo.toml +++ b/examples/chat/Cargo.toml @@ -11,7 +11,7 @@ release = false [dependencies] tokio = { workspace = true, 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 497a9dc11ae..ce027a65ed8 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 f364b9305c9..b53c8732a33 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 = { workspace = true, 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 f18d7b41406..34f92b28979 100644 --- a/examples/ipfs-kad/Cargo.toml +++ b/examples/ipfs-kad/Cargo.toml @@ -13,7 +13,7 @@ tokio = { workspace = true, 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.82" 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 7b017111d26..8d3a49e85c0 100644 --- a/examples/ipfs-private/Cargo.toml +++ b/examples/ipfs-private/Cargo.toml @@ -12,7 +12,7 @@ release = false tokio = { workspace = true, features = ["rt-multi-thread", "macros", "io-std"] } async-trait = "0.1" either = "1.11" -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 f3119b0f0fa..214b4450de7 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 } axum = "0.7" 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 d712f482f03..e92b5392c7a 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 = { workspace = true, 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 8ce668a98be..0a6229e4f07 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 = { workspace = true, features = ["rt-multi-thread", "macros", "time"] } tracing = { workspace = true } diff --git a/examples/stream/Cargo.toml b/examples/stream/Cargo.toml index 37a511d857f..2c1f5ad1e9d 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 20c1323c7d6..6abe3f8354b 100644 --- a/examples/upnp/Cargo.toml +++ b/examples/upnp/Cargo.toml @@ -10,7 +10,7 @@ release = false [dependencies] tokio = { workspace = true, 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 e725d96912e..6e0c692b5c9 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 6e6ba028847..cfc85b75755 100644 --- a/interop-tests/Cargo.toml +++ b/interop-tests/Cargo.toml @@ -14,7 +14,7 @@ crate-type = ["cdylib", "rlib"] [dependencies] anyhow = "1" either = "1.11.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 12b895894ab..01419445b8b 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 f6d09103359..f304d4b6346 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" axum = "0.7" 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 10322fb63da..7be4b01fef5 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.11.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 8e7e0ef3621..e95fa00697e 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 830866150ac..3a5e27f7b5f 100644 --- a/protocols/gossipsub/Cargo.toml +++ b/protocols/gossipsub/Cargo.toml @@ -20,7 +20,7 @@ byteorder = "1.5.0" bytes = "1.6" either = "1.11" fnv = "1.0.7" -futures = "0.3.30" +futures = { workspace = true } futures-ticker = "0.0.3" getrandom = "0.2.14" hex_fmt = "0.3.0" diff --git a/protocols/identify/Cargo.toml b/protocols/identify/Cargo.toml index 16cfef4a05a..626db2ab944 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 3d2739c6004..bf4caf28e97 100644 --- a/protocols/kad/Cargo.toml +++ b/protocols/kad/Cargo.toml @@ -16,7 +16,7 @@ bytes = "1" either = "1.11" 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 af8f555156a..9db161779dc 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 655f7e13658..9a3d0d57f02 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 0a07b403260..eb08d21ca92 100644 --- a/protocols/ping/Cargo.toml +++ b/protocols/ping/Cargo.toml @@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] either = "1.11.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 750f5550dde..d4ba1b37d86 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.11.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 609ea207bae..2937cbbdd93 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 fd628da2420..2e10b3e4206 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 964d69027f1..b90f9958173 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 a73f955ae62..944b3323842 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 0ea404fad7f..1bd40bdace3 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 10749def335..ad224b6168d 100644 --- a/swarm/Cargo.toml +++ b/swarm/Cargo.toml @@ -13,7 +13,7 @@ categories = ["network-programming", "asynchronous"] [dependencies] either = "1.11.0" fnv = "1.0" -futures = "0.3.30" +futures = { workspace = true } futures-timer = "3.0.3" getrandom = { version = "0.2.14", 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.11.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 d35d87da075..329268645ab 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.80" -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 9d6229343bd..8e17ba3d6a3 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 bb8b1c03f6f..76964ce3152 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 4dd72bee1fe..26ff0aa6fac 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 b074e8e8b22..6a463a72062 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 d8829f0ae4b..1494f110c97 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 84df8dc569e..13642a38a48 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 = { workspace = true, 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 b5682a7c7da..e1590404fda 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.14", features = ["js"] } hex = "0.4.3" js-sys = { version = "0.3" } diff --git a/transports/webrtc/Cargo.toml b/transports/webrtc/Cargo.toml index 4a7c94ab1ca..a1de95a1993 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 3769806da8c..06505c7e1c2 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 5327d6577b3..89436af1f0c 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.11.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 ed3d4f0b8c4..a1bd3832177 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 f50a3909bd0..2ea3745ee80 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.14", features = ["js"] } libp2p-core = { workspace = true } libp2p-identity = { workspace = true, features = ["rand"] }