11 lines
313 B
Rust
Raw Normal View History

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