fn main() -> Result<(), Box> { let mut config = tonic_prost_build::Config::new(); config.protoc_executable(protoc_bin_vendored::protoc_bin_path()?); tonic_prost_build::configure().compile_with_config( config, &["proto/node.proto"], &["proto"], )?; println!("cargo:rerun-if-changed=proto/node.proto"); Ok(()) }