diff --git a/Cargo.toml b/Cargo.toml index f92dbef..c958a44 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ appveyor = { repository = "quininer/tokio-rustls" } [dependencies] smallvec = "0.6" tokio-io = { git = "https://github.com/tokio-rs/tokio" } -tokio-futures = { git = "https://github.com/tokio-rs/tokio" } +futures-core-preview = "0.3.0-alpha.17" rustls = "0.15" webpki = "0.19" diff --git a/src/common/mod.rs b/src/common/mod.rs index 228b1a3..60f0465 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -4,7 +4,7 @@ use std::marker::Unpin; use std::io::{ self, Read, Write }; use rustls::Session; use tokio_io::{ AsyncRead, AsyncWrite }; -use tokio_futures as futures; +use futures_core as futures; pub struct Stream<'a, IO, S> { diff --git a/src/lib.rs b/src/lib.rs index 59cfe44..f09e02d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,7 +13,7 @@ use std::pin::Pin; use std::future::Future; use std::task::{ Poll, Context }; use tokio_io::{ AsyncRead, AsyncWrite }; -use tokio_futures as futures; +use futures_core as futures; use rustls::{ ClientConfig, ClientSession, ServerConfig, ServerSession }; use webpki::DNSNameRef; use common::Stream;