8 lines
350 B
Rust
8 lines
350 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
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(())
|
|
}
|