Files
tokio/tokio-async-await/Cargo.toml
T
Carl Lerche b479ce78d3 add experimental async/await support. (#582)
This patch adds experimental async/await support to Tokio. It does this
by adding feature flags to existing libs only where necessary in order
to add nightly specific code (mostly `Unpin` implementations). It then
provides a new crate: `tokio-async-await` which is a shim layer on top
of `tokio`.

The `tokio-async-await` crate is expected to look exactly like `tokio`
does, but with async / await support. This strategy reduces the amount
of cfg guarding in the main libraries.

This patch also adds `tokio-channel`, which is copied from futures-rs
0.1 and adds the necessary `Unpin` implementations. In general, futures
0.1 is mostly unmaintained, so it will make sense for Tokio to take over
maintainership of key components regardless of async / await support.
2018-08-27 12:24:51 -07:00

46 lines
1.3 KiB
TOML

cargo-features = ["edition", "rename-dependency"]
[package]
name = "tokio-async-await"
edition = "2018"
# When releasing to crates.io:
# - Update html_root_url.
version = "0.1.0"
authors = ["Carl Lerche <[email protected]>"]
license = "MIT"
repository = "https://github.com/tokio-rs/tokio"
homepage = "https://tokio.rs"
documentation = "https://docs.rs/tokio-async-await/0.1.0"
description = """
Experimental async/await support for Tokio
"""
categories = ["asynchronous"]
[workspace]
[lib]
name = "tokio"
[dependencies]
futures = "0.1.23"
tokio_main = { package = "tokio", version = "0.1.7", path = ".." }
tokio-io = { version = "0.1.7", path = "../tokio-io" }
tokio-channel = { version = "0.1.0", path = "../tokio-channel", features = ["async-await-preview"] }
tokio-reactor = { version = "0.1.5", path = "../tokio-reactor", features = ["async-await-preview"] }
futures-core-preview = { version = "0.3.0-alpha.2" }
futures-util-preview = { version = "0.3.0-alpha.2" }
[dev-dependencies]
bytes = "0.4.9"
tokio-codec = { version = "0.1.0", path = "../tokio-codec" }
hyper = "0.12.8"
[patch.crates-io]
tokio = { path = "../" }
tokio-executor = { path = "../tokio-executor" }
tokio-io = { path = "../tokio-io" }
tokio-reactor = { path = "../tokio-reactor" }
tokio-tcp = { path = "../tokio-tcp" }
tokio-timer = { path = "../tokio-timer" }