From 85b8f69cc4d639c79fe2e91bbddf721413817813 Mon Sep 17 00:00:00 2001 From: tottoto Date: Thu, 9 Jan 2025 12:56:07 +0900 Subject: [PATCH] chore: Disable unused tokio-stream feature (#2129) --- tonic-health/Cargo.toml | 3 +-- tonic-reflection/Cargo.toml | 3 ++- tonic-web/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tonic-health/Cargo.toml b/tonic-health/Cargo.toml index 1969eaba7..8a4298e10 100644 --- a/tonic-health/Cargo.toml +++ b/tonic-health/Cargo.toml @@ -21,12 +21,11 @@ transport = [] [dependencies] prost = "0.13" tokio = {version = "1.0", features = ["sync"]} -tokio-stream = {version = "0.1", features = ["sync"]} +tokio-stream = {version = "0.1", default-features = false, features = ["sync"]} tonic = { version = "0.13.0", path = "../tonic", default-features = false, features = ["codegen", "prost"] } [dev-dependencies] tokio = {version = "1.0", features = ["rt-multi-thread", "macros"]} -tokio-stream = "0.1" prost-types = "0.13.0" [lints] diff --git a/tonic-reflection/Cargo.toml b/tonic-reflection/Cargo.toml index 620a0a54f..da23ef441 100644 --- a/tonic-reflection/Cargo.toml +++ b/tonic-reflection/Cargo.toml @@ -29,10 +29,11 @@ default = ["server"] prost = "0.13" prost-types = {version = "0.13", optional = true} tokio = { version = "1.0", features = ["sync", "rt"], optional = true } -tokio-stream = {version = "0.1", features = ["net"], optional = true } +tokio-stream = {version = "0.1", default-features = false, optional = true } tonic = { version = "0.13.0", path = "../tonic", default-features = false, features = ["codegen", "prost"] } [dev-dependencies] +tokio-stream = {version = "0.1", default-features = false, features = ["net"]} tonic = { version = "0.13.0", path = "../tonic", default-features = false, features = ["transport"] } [lints] diff --git a/tonic-web/Cargo.toml b/tonic-web/Cargo.toml index f44904202..f15779f01 100644 --- a/tonic-web/Cargo.toml +++ b/tonic-web/Cargo.toml @@ -17,7 +17,7 @@ version = "0.13.0" [dependencies] base64 = "0.22" bytes = "1" -tokio-stream = "0.1" +tokio-stream = { version = "0.1", default-features = false } http = "1" http-body = "1" pin-project = "1"