20 lines
521 B
Rust
20 lines
521 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
// Build gRPC service definitions
|
|
tonic_build::configure()
|
|
.build_server(true)
|
|
.build_client(true)
|
|
.compile_protos(
|
|
&[
|
|
"proto/region.proto",
|
|
"proto/tenant.proto",
|
|
"proto/billing.proto",
|
|
"proto/federation.proto",
|
|
"proto/slo.proto",
|
|
],
|
|
&["proto"],
|
|
)?;
|
|
|
|
println!("cargo:rerun-if-changed=proto/");
|
|
Ok(())
|
|
}
|