piratewallet-light-cli/lib/build.rs

11 lines
313 B
Rust
Raw Normal View History

2019-12-31 05:09:48 +00:00
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(false)
.compile(
2019-09-01 21:29:53 +00:00
&["proto/service.proto", "proto/compact_formats.proto"],
&["proto"],
2019-12-31 05:09:48 +00:00
)?;
2019-09-01 21:29:53 +00:00
println!("cargo:rerun-if-changed=proto/service.proto");
2019-12-31 05:09:48 +00:00
Ok(())
}