fn main() -> Result<(), Box> { let fds_path = std::path::PathBuf::from(std::env::var("OUT_DIR").expect("$OUT_DIR")).join("fdset.bin"); tonic_build::configure() .file_descriptor_set_path(fds_path) .compile_protos(&["proto/test.proto"], &["proto"])?; Ok(()) }