diff --git a/Cargo.lock b/Cargo.lock index c9fadb16..5fea9676 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7530,7 +7530,7 @@ version = "0.1.0" dependencies = [ "clap", "frame-benchmarking", - "futures", + "futures-util", "jsonrpsee", "pallet-transaction-payment-rpc", "sc-authority-discovery", diff --git a/coordinator/Cargo.toml b/coordinator/Cargo.toml index 31459250..e00a33be 100644 --- a/coordinator/Cargo.toml +++ b/coordinator/Cargo.toml @@ -48,11 +48,11 @@ borsh = { version = "1", default-features = false, features = ["std", "derive", log = { version = "0.4", default-features = false, features = ["std"] } env_logger = { version = "0.10", default-features = false, features = ["humantime"] } +futures-util = { version = "0.3", default-features = false, features = ["std"] } tokio = { version = "1", default-features = false, features = ["rt-multi-thread", "sync", "time", "macros"] } libp2p = { version = "0.52", default-features = false, features = ["tokio", "tcp", "noise", "yamux", "gossipsub", "mdns", "macros"] } [dev-dependencies] -futures-util = { version = "0.3", default-features = false, features = ["std"] } tributary = { package = "tributary-chain", path = "./tributary", features = ["tests"] } sp-application-crypto = { git = "https://github.com/serai-dex/substrate", default-features = false, features = ["std"] } sp-runtime = { git = "https://github.com/serai-dex/substrate", default-features = false, features = ["std"] } diff --git a/coordinator/src/p2p.rs b/coordinator/src/p2p.rs index 58201232..8af8495f 100644 --- a/coordinator/src/p2p.rs +++ b/coordinator/src/p2p.rs @@ -13,13 +13,13 @@ use serai_client::primitives::NetworkId; use serai_db::Db; +use futures_util::StreamExt; use tokio::{ sync::{Mutex, RwLock, mpsc, broadcast}, time::sleep, }; use libp2p::{ - futures::StreamExt, identity::Keypair, PeerId, tcp::Config as TcpConfig, diff --git a/substrate/node/Cargo.toml b/substrate/node/Cargo.toml index 8f99c5e7..bd062bfb 100644 --- a/substrate/node/Cargo.toml +++ b/substrate/node/Cargo.toml @@ -22,7 +22,7 @@ name = "serai-node" [dependencies] clap = { version = "4", features = ["derive"] } -futures = "0.3" +futures-util = "0.3" jsonrpsee = { version = "0.16", features = ["server"] } sp-core = { git = "https://github.com/serai-dex/substrate" } diff --git a/substrate/node/src/service.rs b/substrate/node/src/service.rs index 4ae4a450..19cf3370 100644 --- a/substrate/node/src/service.rs +++ b/substrate/node/src/service.rs @@ -1,6 +1,6 @@ use std::{boxed::Box, sync::Arc}; -use futures::stream::StreamExt; +use futures_util::stream::StreamExt; use sp_timestamp::InherentDataProvider as TimestampInherent; use sp_consensus_babe::{SlotDuration, inherents::InherentDataProvider as BabeInherent};