p9cpu/crates/libp9cpu/build.rs
Changyuan Lyu 0e1f9cebbe p9cpu: Implements rpc-based transport layer client
Signed-off-by: Changyuan Lyu <changyuanl@google.com>
2023-05-26 16:10:07 -07:00

11 lines
322 B
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut config = prost_build::Config::new();
config.protoc_arg("--experimental_allow_proto3_optional");
tonic_build::configure().compile_with_config(
config,
&["src/cmd.proto", "src/rpc/p9cpu.proto"],
&["src"],
)?;
Ok(())
}