Giri Priyadarshan 17a3ad9620
tonic gRPC example (#659)
* tonic gRPC example

* minor change to client output

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-04-05 20:35:33 +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);
}