From 2c01b3e0e00867775fbc9b944357a548a971f861 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Fri, 2 Aug 2019 12:59:24 -0700 Subject: [PATCH] io: remove `util` from default features (#1379) Sub-crates should require opting into features. --- azure-pipelines.yml | 3 ++- tokio-io/Cargo.toml | 3 +-- tokio/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 58dcb595e..d6777c177 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -58,7 +58,8 @@ jobs: tokio-codec: [] tokio-current-thread: [] tokio-executor: [] - tokio-io: [] + tokio-io: + - util tokio-sync: - async-traits tokio-macros: [] diff --git a/tokio-io/Cargo.toml b/tokio-io/Cargo.toml index 8c55e5972..80df86913 100644 --- a/tokio-io/Cargo.toml +++ b/tokio-io/Cargo.toml @@ -34,5 +34,4 @@ futures-util-preview = "0.3.0-alpha.17" tokio-test = { version = "0.2.0", path = "../tokio-test" } [features] -default = ["util"] -util = ["memchr"] \ No newline at end of file +util = ["memchr"] diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index 1370f221e..be4d2905e 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -70,7 +70,7 @@ num_cpus = { version = "1.8.0", optional = true } tokio-codec = { version = "0.2.0", optional = true, path = "../tokio-codec" } tokio-current-thread = { version = "0.2.0", optional = true, path = "../tokio-current-thread" } tokio-fs = { version = "0.2.0", optional = true, path = "../tokio-fs" } -tokio-io = { version = "0.2.0", optional = true, path = "../tokio-io" } +tokio-io = { version = "0.2.0", optional = true, features = ["util"], path = "../tokio-io" } tokio-executor = { version = "0.2.0", optional = true, path = "../tokio-executor" } tokio-macros = { version = "0.2.0", optional = true, path = "../tokio-macros" } tokio-reactor = { version = "0.2.0", optional = true, path = "../tokio-reactor" }