feat(lib): update to std::future::Future

BREAKING CHANGE: All usage of async traits (`Future`, `Stream`,
`AsyncRead`, `AsyncWrite`, etc) are updated to newer versions.
This commit is contained in:
Sean McArthur
2019-07-09 15:37:43 -07:00
parent da9b0319ef
commit 8f4b05ae78
37 changed files with 1526 additions and 1548 deletions

View File

@@ -23,8 +23,9 @@ include = [
[dependencies]
bytes = "0.4.4"
futures = "0.1.21"
futures-cpupool = { version = "0.1.6", optional = true }
futures-core-preview = { version = "0.3.0-alpha.16" }
futures-channel-preview = { version = "0.3.0-alpha.16" }
futures-util-preview = { version = "0.3.0-alpha.16" }
http = "0.1.15"
http-body = "0.1"
httparse = "1.0"
@@ -33,28 +34,30 @@ iovec = "0.1"
itoa = "0.4.1"
log = "0.4"
net2 = { version = "0.2.32", optional = true }
pin-utils = "0.1.0-alpha.4"
time = "0.1"
tokio = { version = "0.1.14", optional = true, default-features = false, features = ["rt-full"] }
tokio = { git = "https://github.com/tokio-rs/tokio", optional = true, default-features = false, features = ["rt-full"] }
tokio-buf = "0.1"
tokio-executor = { version = "0.1.0", optional = true }
tokio-io = "0.1"
tokio-reactor = { version = "0.1", optional = true }
tokio-tcp = { version = "0.1", optional = true }
tokio-threadpool = { version = "0.1.3", optional = true }
tokio-timer = { version = "0.2", optional = true }
want = "0.2"
tokio-executor = { git = "https://github.com/tokio-rs/tokio", optional = true }
tokio-io = { git = "https://github.com/tokio-rs/tokio" }
tokio-reactor = { git = "https://github.com/tokio-rs/tokio", optional = true }
tokio-sync = { git = "https://github.com/tokio-rs/tokio" }
tokio-tcp = { git = "https://github.com/tokio-rs/tokio", optional = true }
tokio-threadpool = { git = "https://github.com/tokio-rs/tokio", optional = true }
tokio-timer = { git = "https://github.com/tokio-rs/tokio", optional = true }
want = { git = "https://github.com/seanmonstar/want", branch = "std-future" }
[build-dependencies]
rustc_version = "0.2"
[dev-dependencies]
futures-timer = "0.1"
#futures-timer = "0.1"
num_cpus = "1.0"
pretty_env_logger = "0.3"
spmc = "0.2"
url = "1.0"
tokio-fs = "0.1"
tokio-mockstream = "1.1.0"
#tokio-fs = "0.1"
#tokio-mockstream = "1.1.0"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
@@ -65,7 +68,6 @@ default = [
"runtime",
]
runtime = [
"futures-cpupool",
"net2",
"tokio",
"tokio-executor",