Replace futures-util dev-dependency with tokio-stream

This commit is contained in:
Jonas Platte 2021-01-07 15:11:26 +01:00
parent 1f08175f04
commit 25b43d2bf9
No known key found for this signature in database
GPG key ID: CC154DE0E30B7C67
3 changed files with 3 additions and 3 deletions

View file

@ -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"]

View file

@ -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},

View file

@ -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();