11 lines
281 B
Rust
11 lines
281 B
Rust
fn main() {
|
|
let proto_file = "./proto/post.proto";
|
|
|
|
tonic_build::configure()
|
|
.build_server(true)
|
|
.compile(&[proto_file], &["."])
|
|
.unwrap_or_else(|e| panic!("protobuf compile error: {}", e));
|
|
|
|
println!("cargo:rerun-if-changed={}", proto_file);
|
|
}
|