use std::path::PathBuf; fn main() { let cwd = std::env::var("CARGO_MANIFEST_DIR").unwrap(); let cwd = PathBuf::from(cwd); tonic_build::compile_protos(cwd.join("./proto/backproof.proto")) .unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e)); }