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