From c30cb783b9e5eaa4ea05003d9cacac733d135c58 Mon Sep 17 00:00:00 2001 From: tottoto Date: Tue, 30 Jan 2024 02:11:37 +0900 Subject: [PATCH] chore(reflection): Make prost-types dependency optional (#1610) --- tonic-reflection/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tonic-reflection/Cargo.toml b/tonic-reflection/Cargo.toml index 302107432..e411fad5d 100644 --- a/tonic-reflection/Cargo.toml +++ b/tonic-reflection/Cargo.toml @@ -22,12 +22,12 @@ all-features = true rustdoc-args = ["--cfg", "docsrs"] [features] -server = ["dep:tokio", "dep:tokio-stream"] +server = ["prost-types", "dep:tokio", "dep:tokio-stream"] default = ["server"] [dependencies] prost = "0.12" -prost-types = "0.12" +prost-types = {version = "0.12", optional = true} tokio = { version = "1.0", features = ["sync", "rt"], optional = true } tokio-stream = {version = "0.1", features = ["net"], optional = true } tonic = { version = "0.10", path = "../tonic", default-features = false, features = ["codegen", "prost"] }