tokio-xmpp: Bump tokio to 1.0 and replace tokio-tls with tokio-native-tls
This commit is contained in:
parent
e1ff9da681
commit
a38ff39b77
2 changed files with 7 additions and 5 deletions
|
@ -12,15 +12,16 @@ keywords = ["xmpp", "tokio"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bytes = "0.5"
|
bytes = "1"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
idna = "0.2"
|
idna = "0.2"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
native-tls = "0.2"
|
native-tls = "0.2"
|
||||||
sasl = "0.4"
|
sasl = "0.4"
|
||||||
tokio = { version = "0.2", features = ["net", "stream", "rt-util", "rt-threaded", "macros"] }
|
tokio = { version = "1", features = ["net", "rt", "rt-multi-thread", "macros"] }
|
||||||
tokio-util = { version = "0.3", features = ["codec"] }
|
tokio-util = { version = "0.6", features = ["codec"] }
|
||||||
tokio-tls = "0.3"
|
tokio-stream = { version = "0.1", features = [] }
|
||||||
|
tokio-tls = { package = "tokio-native-tls", version = "0.3" }
|
||||||
trust-dns-resolver = "0.19"
|
trust-dns-resolver = "0.19"
|
||||||
trust-dns-proto = "0.19"
|
trust-dns-proto = "0.19"
|
||||||
xml5ever = "0.16"
|
xml5ever = "0.16"
|
||||||
|
|
|
@ -4,7 +4,8 @@ use sasl::common::{ChannelBinding, Credentials};
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use std::task::{Context, Poll};
|
use std::task::{Context, Poll};
|
||||||
use tokio::{net::TcpStream, stream::StreamExt};
|
use tokio::net::TcpStream;
|
||||||
|
use tokio_stream::StreamExt;
|
||||||
use tokio_tls::TlsStream;
|
use tokio_tls::TlsStream;
|
||||||
use xmpp_parsers::{ns, Element, Jid};
|
use xmpp_parsers::{ns, Element, Jid};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue