12 lines
315 B
Rust
12 lines
315 B
Rust
fn main() {
|
|
let files = &["proto/grpc/testing/test.proto"];
|
|
let dirs = &["proto/grpc/testing"];
|
|
|
|
tonic_build::compile_protos(files, dirs).unwrap();
|
|
|
|
// prevent needing to rebuild if files (or deps) haven't changed
|
|
for file in files {
|
|
println!("cargo:rerun-if-changed={}", file);
|
|
}
|
|
}
|