fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.protoc_arg("--experimental_allow_proto3_optional") // hyperium/tonic#1331
.build_server(true)
.compile(
&[
"src/schema/blob.proto",
"src/schema/common.proto",
"src/schema/kv.proto",
],
&["src/schema"],
)?;
Ok(())
}