mirror of
https://github.com/Lencerf/p9cpu.git
synced 2024-10-23 13:09:46 +00:00
0e1f9cebbe
Signed-off-by: Changyuan Lyu <changyuanl@google.com>
11 lines
322 B
Rust
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(())
|
|
}
|