proto/build.rs

12 lines
310 B
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(true)
.protoc_arg("--experimental_allow_proto3_optional")
.compile_protos(
&["proto/sgx/brain.proto", "proto/sgx/dtpm.proto"],
&["proto"],
)?;
Ok(())
}