chore: update futures-preview to 0.3.0-alpha.18 (#1427)

This commit is contained in:
Taiki Endo 2019-08-11 06:09:28 +09:00 committed by Carl Lerche
parent 6a125082e4
commit 930cce8677
18 changed files with 40 additions and 40 deletions

View File

@ -23,12 +23,12 @@ categories = ["asynchronous"]
tokio-io = { version = "=0.2.0-alpha.1", path = "../tokio-io" }
bytes = "0.4.7"
futures-core-preview = "=0.3.0-alpha.17"
futures-sink-preview = "=0.3.0-alpha.17"
futures-core-preview = "=0.3.0-alpha.18"
futures-sink-preview = "=0.3.0-alpha.18"
log = "0.4"
[dev-dependencies]
tokio = { version = "=0.2.0-alpha.1", path = "../tokio" }
tokio-test = { version = "=0.2.0-alpha.1", path = "../tokio-test" }
futures-util-preview = "=0.3.0-alpha.17"
futures-util-preview = "=0.3.0-alpha.18"

View File

@ -25,4 +25,4 @@ categories = ["concurrency", "asynchronous"]
[dev-dependencies]
tokio = { version = "=0.2.0-alpha.1", path = "../tokio" }
futures-core-preview = "=0.3.0-alpha.17"
futures-core-preview = "=0.3.0-alpha.18"

View File

@ -25,8 +25,8 @@ categories = ["asynchronous", "network-programming", "filesystem"]
tokio-io = { version = "=0.2.0-alpha.1", features = ["util"], path = "../tokio-io" }
tokio-threadpool = { version = "=0.2.0-alpha.1", path = "../tokio-threadpool" }
futures-core-preview = "=0.3.0-alpha.17"
futures-util-preview = "=0.3.0-alpha.17"
futures-core-preview = "=0.3.0-alpha.18"
futures-util-preview = "=0.3.0-alpha.18"
[dev-dependencies]
tokio = { version = "=0.2.0-alpha.1", path = "../tokio" }

View File

@ -25,11 +25,11 @@ util = ["memchr"]
[dependencies]
bytes = "0.4.7"
log = "0.4"
futures-core-preview = "=0.3.0-alpha.17"
futures-core-preview = "=0.3.0-alpha.18"
memchr = { version = "2.2", optional = true }
[dev-dependencies]
tokio = { version = "=0.2.0-alpha.1", path = "../tokio" }
tokio-test = { version = "=0.2.0-alpha.1", path = "../tokio-test" }
futures-util-preview = "=0.3.0-alpha.17"
futures-util-preview = "=0.3.0-alpha.18"

View File

@ -20,8 +20,8 @@ An implementation of an asynchronous process management backed futures.
categories = ["asynchronous"]
[dependencies]
futures-core-preview = "=0.3.0-alpha.17"
futures-util-preview = "=0.3.0-alpha.17"
futures-core-preview = "=0.3.0-alpha.18"
futures-util-preview = "=0.3.0-alpha.18"
log = "0.4"
tokio-io = { version = "=0.2.0-alpha.1", path = "../tokio-io", features = ["util"] }
tokio-reactor = { version = "=0.2.0-alpha.1", path = "../tokio-reactor" }

View File

@ -31,7 +31,7 @@ slab = "0.4.0"
tokio-executor = { version = "=0.2.0-alpha.1", path = "../tokio-executor" }
tokio-io = { version = "=0.2.0-alpha.1", path = "../tokio-io" }
tokio-sync = { version = "=0.2.0-alpha.1", path = "../tokio-sync" }
futures-core-preview = "=0.3.0-alpha.17"
futures-core-preview = "=0.3.0-alpha.18"
[dev-dependencies]
num_cpus = "1.8.0"

View File

@ -20,8 +20,8 @@ An implementation of an asynchronous Unix signal handling backed futures.
categories = ["asynchronous"]
[dependencies]
futures-core-preview = "=0.3.0-alpha.17"
futures-util-preview = "=0.3.0-alpha.17"
futures-core-preview = "=0.3.0-alpha.18"
futures-util-preview = "=0.3.0-alpha.18"
lazy_static = "1"
tokio-reactor = { version = "=0.2.0-alpha.1", path = "../tokio-reactor" }
tokio-executor = { version = "=0.2.0-alpha.1", path = "../tokio-executor" }

View File

@ -24,13 +24,13 @@ async-traits = ["futures-sink-preview"]
[dependencies]
fnv = "1.0.6"
futures-core-preview = { version = "=0.3.0-alpha.17" }
futures-sink-preview = { version = "=0.3.0-alpha.17", optional = true }
futures-util-preview = { version = "=0.3.0-alpha.17" }
futures-core-preview = { version = "=0.3.0-alpha.18" }
futures-sink-preview = { version = "=0.3.0-alpha.18", optional = true }
futures-util-preview = { version = "=0.3.0-alpha.18" }
[dev-dependencies]
tokio = { version = "=0.2.0-alpha.1", path = "../tokio" }
tokio-test = { version = "=0.2.0-alpha.1", path = "../tokio-test" }
env_logger = { version = "0.6", default-features = false }
loom = { version = "0.2.0", features = ["futures"] }
loom = { version = "0.2.1", features = ["futures"] }

View File

@ -26,8 +26,8 @@ async-traits = []
tokio-io = { version = "=0.2.0-alpha.1", path = "../tokio-io" }
tokio-reactor = { version = "=0.2.0-alpha.1", path = "../tokio-reactor" }
futures-core-preview = "=0.3.0-alpha.17"
futures-util-preview = "=0.3.0-alpha.17"
futures-core-preview = "=0.3.0-alpha.18"
futures-util-preview = "=0.3.0-alpha.18"
bytes = "0.4"
mio = "0.6.14"
iovec = "0.1"

View File

@ -25,10 +25,10 @@ tokio-io = { version = "=0.2.0-alpha.1", path = "../tokio-io" }
tokio-sync = { version = "=0.2.0-alpha.1", path = "../tokio-sync" }
tokio-timer = { version = "=0.3.0-alpha.1", path = "../tokio-timer" }
futures-core-preview = "=0.3.0-alpha.17"
futures-core-preview = "=0.3.0-alpha.18"
pin-convert = "0.1.0"
[dev-dependencies]
tokio = { version = "=0.2.0-alpha.1", path = "../tokio" }
futures-util-preview = "=0.3.0-alpha.17"
futures-util-preview = "=0.3.0-alpha.18"

View File

@ -24,8 +24,8 @@ categories = ["concurrency", "asynchronous"]
[dependencies]
tokio-executor = { version = "=0.2.0-alpha.1", path = "../tokio-executor" }
tokio-sync = { version = "=0.2.0-alpha.1", path = "../tokio-sync" }
futures-core-preview = "=0.3.0-alpha.17"
futures-util-preview = "=0.3.0-alpha.17"
futures-core-preview = "=0.3.0-alpha.18"
futures-util-preview = "=0.3.0-alpha.18"
crossbeam-deque = "0.7.0"
crossbeam-queue = "0.1.0"

View File

@ -8,7 +8,7 @@ use self::state::State;
use crate::pool::Pool;
use crate::waker::Waker;
use futures_util::task::ArcWake;
use futures_util::task;
use log::trace;
use std::cell::{Cell, UnsafeCell};
use std::future::Future;
@ -135,7 +135,7 @@ impl Task {
let mut g = Guard(fut, true);
let waker = ArcWake::into_waker(Arc::new(Waker {
let waker = task::waker(Arc::new(Waker {
task: me.clone(),
pool: pool.clone(),
}));

View File

@ -27,8 +27,8 @@ async-traits = []
tokio-executor = { version = "=0.2.0-alpha.1", path = "../tokio-executor" }
tokio-sync = { version = "=0.2.0-alpha.1", path = "../tokio-sync" }
futures-core-preview = "=0.3.0-alpha.17"
futures-util-preview = "=0.3.0-alpha.17"
futures-core-preview = "=0.3.0-alpha.18"
futures-util-preview = "=0.3.0-alpha.18"
crossbeam-utils = "0.6.0"
# Backs `DelayQueue`

View File

@ -34,7 +34,7 @@ tokio-tcp = { version = "=0.2.0-alpha.1", path = "../tokio-tcp", features = ["as
cfg-if = "0.1"
env_logger = { version = "0.6", default-features = false }
futures-preview = { version = "=0.3.0-alpha.17", features = ["async-await", "nightly"] }
futures-preview = { version = "=0.3.0-alpha.18", features = ["async-await", "nightly"] }
[target.'cfg(all(not(target_os = "macos"), not(windows), not(target_os = "ios")))'.dev-dependencies]
openssl = "0.10"

View File

@ -24,8 +24,8 @@ tokio-reactor = { version = "=0.2.0-alpha.1", path = "../tokio-reactor" }
mio = "0.6.14"
log = "0.4"
futures-core-preview = "=0.3.0-alpha.17"
futures-util-preview = "=0.3.0-alpha.17"
futures-core-preview = "=0.3.0-alpha.18"
futures-util-preview = "=0.3.0-alpha.18"
[dev-dependencies]
tokio = { version = "=0.2.0-alpha.1", path = "../tokio", default-features = false, features = ["rt-full"] }

View File

@ -30,8 +30,8 @@ tokio-io = { version = "=0.2.0-alpha.1", path = "../tokio-io" }
bytes = "0.4.8"
mio = "0.6.14"
mio-uds = "0.6.5"
futures-core-preview = "=0.3.0-alpha.17"
futures-util-preview = "=0.3.0-alpha.17"
futures-core-preview = "=0.3.0-alpha.18"
futures-util-preview = "=0.3.0-alpha.18"
iovec = "0.1.2"
libc = "0.2.42"
log = "0.4.2"
@ -40,4 +40,4 @@ log = "0.4.2"
tokio = { version = "=0.2.0-alpha.1", path = "../tokio" }
tempfile = "3"
futures-preview = "=0.3.0-alpha.17"
futures-preview = "=0.3.0-alpha.18"

View File

@ -58,9 +58,9 @@ udp = ["tokio-udp"]
uds = ["tokio-uds"]
[dependencies]
futures-core-preview = "=0.3.0-alpha.17"
futures-sink-preview = "=0.3.0-alpha.17"
futures-util-preview = { version = "=0.3.0-alpha.17", features = ["sink"] }
futures-core-preview = "=0.3.0-alpha.18"
futures-sink-preview = "=0.3.0-alpha.18"
futures-util-preview = { version = "=0.3.0-alpha.18", features = ["sink"] }
# Everything else is optional...
bytes = { version = "0.4", optional = true }
@ -85,8 +85,8 @@ tokio-uds = { version = "=0.3.0-alpha.1", optional = true, path = "../tokio-uds"
[dev-dependencies]
tokio-test = { version = "=0.2.0-alpha.1", path = "../tokio-test" }
futures-preview = "=0.3.0-alpha.17"
futures-util-preview = "=0.3.0-alpha.17"
futures-preview = "=0.3.0-alpha.18"
futures-util-preview = "=0.3.0-alpha.18"
pin-utils = "=0.1.0-alpha.4"
env_logger = { version = "0.6", default-features = false }
flate2 = { version = "1", features = ["tokio"] }

View File

@ -6,7 +6,7 @@ use tokio_reactor::Reactor;
use tokio_tcp::TcpListener;
use tokio_test::{assert_ok, assert_pending};
use futures_util::task::ArcWake;
use futures_util::task::{waker_ref, ArcWake};
use std::future::Future;
use std::net::TcpStream;
use std::pin::Pin;
@ -67,7 +67,7 @@ fn test_drop_on_notify() {
let _enter = tokio_executor::enter().unwrap();
tokio_reactor::with_default(&reactor.handle(), || {
let waker = task.clone().into_waker();
let waker = waker_ref(&task);
let mut cx = Context::from_waker(&waker);
assert_pending!(task.future.lock().unwrap().as_mut().poll(&mut cx));
});