Chris Tsang 31edb2c409 Rename
2022-04-05 21:23:55 +08:00

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);
}