1
0
forked from ROMEO/nexosim
nexosim/asynchronix/build.rs
2024-09-07 19:53:30 +02:00

15 lines
435 B
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
#[cfg(feature = "rpc-codegen")]
let builder = tonic_build::configure()
.build_client(false)
.out_dir("src/rpc/codegen/");
#[cfg(all(feature = "rpc-codegen", not(feature = "grpc-service")))]
let builder = builder.build_server(false);
#[cfg(feature = "rpc-codegen")]
builder.compile(&["simulation.proto"], &["src/rpc/api/"])?;
Ok(())
}