//! Build script for stemedb-rpc that generates gRPC code from proto files. fn main() -> Result<(), Box> { // Only re-run when these inputs change; without this, cargo re-runs on every build. println!("cargo:rerun-if-changed=proto/sync.proto"); println!("cargo:rerun-if-changed=build.rs"); tonic_build::configure() .build_server(true) .build_client(true) .compile_protos(&["proto/sync.proto"], &["proto/"])?; Ok(()) }