Replace futures-util dev-dependency with tokio-stream
This commit is contained in:
parent
1f08175f04
commit
25b43d2bf9
3 changed files with 3 additions and 3 deletions
|
@ -34,9 +34,9 @@ serde_json = "1.0.61"
|
|||
|
||||
[dev-dependencies]
|
||||
anyhow = "1.0.37"
|
||||
futures-util = "0.3.8"
|
||||
ruma = { version = "0.0.2", path = "../ruma", features = ["client-api"] }
|
||||
tokio = { version = "1.0.1", features = ["macros", "rt"] }
|
||||
tokio-stream = { version = "0.1.1", default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["http1", "http2", "tls-native"]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use std::{env, process::exit, time::Duration};
|
||||
|
||||
use assign::assign;
|
||||
use futures_util::stream::TryStreamExt as _;
|
||||
use tokio_stream::StreamExt as _;
|
||||
use http::Uri;
|
||||
use ruma::{
|
||||
api::client::r0::{filter::FilterDefinition, sync::sync_events},
|
||||
|
|
|
@ -44,9 +44,9 @@
|
|||
//! ```no_run
|
||||
//! use std::time::Duration;
|
||||
//!
|
||||
//! # use futures_util::stream::{StreamExt as _, TryStreamExt as _};
|
||||
//! # use ruma_client::Client;
|
||||
//! # use ruma::presence::PresenceState;
|
||||
//! # use tokio_stream::{StreamExt as _};
|
||||
//! # let homeserver_url = "https://example.com".parse().unwrap();
|
||||
//! # let client = Client::new(homeserver_url, None);
|
||||
//! # let next_batch_token = String::new();
|
||||
|
|
Loading…
Reference in a new issue