Skip to content

Commit

Permalink
chore(reflection): Make prost-types dependency optional (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Jan 29, 2024
1 parent f714f42 commit c30cb78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tonic-reflection/Cargo.toml
Original file line number Diff line number Diff line change
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 c30cb78

Please sign in to comment.