From 5e5f513542c0f92f49f6acd31021cc056577be6b Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Sat, 19 Dec 2020 14:15:00 -0800 Subject: [PATCH] chore: remove some left over `stream` feature code (#3300) Removes the `stream` feature flag from `Cargo.toml` and removes the `futures-core` dependency. Once `Stream` lands in `std`, a feature flag is most likely not needed. --- tokio-test/Cargo.toml | 2 +- tokio-util/Cargo.toml | 2 +- tokio/Cargo.toml | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tokio-test/Cargo.toml b/tokio-test/Cargo.toml index e6b8d661b..69db20553 100644 --- a/tokio-test/Cargo.toml +++ b/tokio-test/Cargo.toml @@ -21,7 +21,7 @@ categories = ["asynchronous", "testing"] publish = false [dependencies] -tokio = { version = "1.0.0", path = "../tokio", features = ["rt", "stream", "sync", "time", "test-util"] } +tokio = { version = "1.0.0", path = "../tokio", features = ["rt", "sync", "time", "test-util"] } tokio-stream = { version = "0.1", path = "../tokio-stream" } async-stream = "0.3" diff --git a/tokio-util/Cargo.toml b/tokio-util/Cargo.toml index 3886afd1f..2df37585e 100644 --- a/tokio-util/Cargo.toml +++ b/tokio-util/Cargo.toml @@ -29,7 +29,7 @@ full = ["codec", "compat", "io", "time", "net", "rt"] net = ["tokio/net"] compat = ["futures-io",] -codec = ["tokio/stream"] +codec = [] time = ["tokio/time","slab"] io = [] rt = ["tokio/rt"] diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index d565cc9d3..817c619a8 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -40,7 +40,6 @@ full = [ "rt", "rt-multi-thread", "signal", - "stream", "sync", "time", ] @@ -83,7 +82,6 @@ signal = [ "signal-hook-registry", "winapi/consoleapi", ] -stream = ["futures-core"] sync = [] test-util = [] time = [] @@ -95,7 +93,6 @@ pin-project-lite = "0.2.0" # Everything else is optional... bytes = { version = "0.6.0", optional = true } -futures-core = { version = "0.3.0", optional = true } once_cell = { version = "1.5.2", optional = true } memchr = { version = "2.2", optional = true } mio = { version = "0.7.6", optional = true }