feat(health): Expose grpc_health_v1 file descriptor set (#620)

This commit is contained in:
Blake Willoughby
2021-07-13 15:35:35 -04:00
committed by GitHub
parent 99fdc98d41
commit 6ee638d940
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -1,5 +1,11 @@
use std::env;
use std::path::PathBuf;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let grpc_health_v1_descriptor_set_path: PathBuf =
PathBuf::from(env::var("OUT_DIR").unwrap()).join("grpc_health_v1.bin");
tonic_build::configure()
.file_descriptor_set_path(grpc_health_v1_descriptor_set_path)
.build_server(true)
.build_client(true)
.format(false)