Skip to content

Commit

Permalink
tendermint-proto: gate tonic import on grpc feature
Browse files Browse the repository at this point in the history
Co-authored-by: Tomas Tauber <[email protected]>
Co-authored-by: Tony Arcieri <[email protected]>
  • Loading branch information
3 people committed Jul 24, 2023
1 parent d99848a commit d9f53d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ description = """
tendermint-proto is a the Rust implementation of the Tendermint proto structs.
"""

[features]
default = []
grpc = ["grpc-server", "grpc-client"]
grpc-server = ["tonic"]
grpc-client = ["tonic"]

[package.metadata.docs.rs]
all-features = true

Expand All @@ -27,6 +33,7 @@ num-traits = { version = "0.2", default-features = false }
num-derive = { version = "0.3", default-features = false }
time = { version = "0.3", default-features = false, features = ["macros", "parsing"] }
flex-error = { version = "0.4.4", default-features = false }
tonic = { version = "0.9", optional = true }

[dev-dependencies]
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }

0 comments on commit d9f53d3

Please sign in to comment.