health, reflection: make rustfmt dependency optional (#785)
Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
This commit is contained in:
@@ -15,8 +15,9 @@ categories = ["network-programming", "asynchronous"]
|
||||
keywords = ["rpc", "grpc", "async", "healthcheck"]
|
||||
|
||||
[features]
|
||||
default = ["transport"]
|
||||
transport = ["tonic/transport"]
|
||||
default = ["transport", "rustfmt"]
|
||||
transport = ["tonic/transport", "tonic-build/transport"]
|
||||
rustfmt = ["tonic-build/rustfmt"]
|
||||
|
||||
[dependencies]
|
||||
tokio = { version = "1.0", features = ["sync"] }
|
||||
@@ -30,4 +31,4 @@ async-stream = "0.3"
|
||||
tokio = { version = "1.0", features = ["rt-multi-thread", "macros"]}
|
||||
|
||||
[build-dependencies]
|
||||
tonic-build = { version = "0.6", path = "../tonic-build" }
|
||||
tonic-build = { version = "0.6", path = "../tonic-build", features = ["prost"] }
|
||||
|
||||
Reference in New Issue
Block a user