From 525d03a1186ac9647d2bc4fc75455bdaf349f03d Mon Sep 17 00:00:00 2001 From: Taylor Cramer Date: Tue, 5 Nov 2019 11:37:30 -0800 Subject: [PATCH] Add async/await to default features Fixes #1904 --- futures-util/Cargo.toml | 2 +- futures/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/futures-util/Cargo.toml b/futures-util/Cargo.toml index 93e9746710..5299bc8230 100644 --- a/futures-util/Cargo.toml +++ b/futures-util/Cargo.toml @@ -15,7 +15,7 @@ Common utilities and extension traits for the futures-rs library. name = "futures_util" [features] -default = ["std"] +default = ["std", "async-await", "async-await-macro"] std = ["alloc", "futures-core-preview/std", "futures-task-preview/std", "slab"] alloc = ["futures-core-preview/alloc", "futures-task-preview/alloc"] async-await = [] diff --git a/futures/Cargo.toml b/futures/Cargo.toml index 4caa87e728..0a4eb8229d 100644 --- a/futures/Cargo.toml +++ b/futures/Cargo.toml @@ -37,7 +37,7 @@ tokio = "0.1.11" assert_matches = "1.3.0" [features] -default = ["std", "executor"] +default = ["std", "async-await", "executor"] std = ["alloc", "futures-core-preview/std", "futures-task-preview/std", "futures-io-preview/std", "futures-sink-preview/std", "futures-util-preview/std", "futures-util-preview/io", "futures-util-preview/channel"] alloc = ["futures-core-preview/alloc", "futures-task-preview/alloc", "futures-sink-preview/alloc", "futures-channel-preview/alloc", "futures-util-preview/alloc"] async-await = ["futures-util-preview/async-await", "futures-util-preview/async-await-macro"]