From 9daf87a17ab4e2804df92e2708313d838587e009 Mon Sep 17 00:00:00 2001 From: quininer Date: Sun, 21 Jul 2019 19:12:10 +0800 Subject: [PATCH] Update tokio --- Cargo.toml | 2 +- src/common/mod.rs | 2 +- src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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;