Skip to content

Commit

Permalink
chore(reflection): Make prost-types dependency optional
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Jan 27, 2024
1 parent f714f42 commit 774b724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tonic-reflection/Cargo.toml
Expand Up @@ -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"] }
Expand Down

0 comments on commit 774b724

Please sign in to comment.