diff --git a/tokio-xmpp/Cargo.toml b/tokio-xmpp/Cargo.toml index 6eae3759..7a4807fc 100644 --- a/tokio-xmpp/Cargo.toml +++ b/tokio-xmpp/Cargo.toml @@ -12,15 +12,16 @@ keywords = ["xmpp", "tokio"] edition = "2018" [dependencies] -bytes = "0.5" +bytes = "1" futures = "0.3" idna = "0.2" log = "0.4" native-tls = "0.2" sasl = "0.4" -tokio = { version = "0.2", features = ["net", "stream", "rt-util", "rt-threaded", "macros"] } -tokio-util = { version = "0.3", features = ["codec"] } -tokio-tls = "0.3" +tokio = { version = "1", features = ["net", "rt", "rt-multi-thread", "macros"] } +tokio-util = { version = "0.6", features = ["codec"] } +tokio-stream = { version = "0.1", features = [] } +tokio-tls = { package = "tokio-native-tls", version = "0.3" } trust-dns-resolver = "0.19" trust-dns-proto = "0.19" xml5ever = "0.16" diff --git a/tokio-xmpp/src/client/simple_client.rs b/tokio-xmpp/src/client/simple_client.rs index 2146e216..e7a58150 100644 --- a/tokio-xmpp/src/client/simple_client.rs +++ b/tokio-xmpp/src/client/simple_client.rs @@ -4,7 +4,8 @@ use sasl::common::{ChannelBinding, Credentials}; use std::pin::Pin; use std::str::FromStr; use std::task::{Context, Poll}; -use tokio::{net::TcpStream, stream::StreamExt}; +use tokio::net::TcpStream; +use tokio_stream::StreamExt; use tokio_tls::TlsStream; use xmpp_parsers::{ns, Element, Jid};