github.com/renbou/grpcbridge@v0.0.2-0.20240416012907-bcbd8b12648a/examples/rstestapi/build.rs (about) 1 use std::{env, path::PathBuf}; 2 3 fn main() -> Result<(), Box<dyn std::error::Error>> { 4 let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); 5 6 tonic_build::configure() 7 .file_descriptor_set_path(out_dir.join("rstestapi.v1_descriptor.bin")) 8 .compile(&["proto/rstestapi/v1/rstestapi.proto"], &["proto"])?; 9 Ok(()) 10 }