1
0
forked from ROMEO/nexosim

Expose the Protobuf simulation service to WASM/JS

This commit is contained in:
Serge Barral
2024-05-27 23:21:26 +02:00
parent 77e6e569ff
commit 59d2af51ba
12 changed files with 252 additions and 242 deletions

View File

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