piratewallet-light-cli/lib/build.rs
Aditya Kulkarni 2c2afcc442 Merge
2019-10-12 15:09:13 -07:00

13 lines
388 B
Rust

fn main() {
// Build proto files
tower_grpc_build::Config::new()
.enable_server(false)
.enable_client(true)
.build(
&["proto/service.proto", "proto/compact_formats.proto"],
&["proto"],
)
.unwrap_or_else(|e| panic!("protobuf compilation failed: {}", e));
println!("cargo:rerun-if-changed=proto/service.proto");
}