1
0
forked from ROMEO/nexosim

Simplify gRPC backend arch + remove wasm backend

This commit is contained in:
Serge Barral
2024-09-08 13:54:09 +02:00
parent 3ccf05335b
commit 6b43fcf704
19 changed files with 60 additions and 410 deletions

View File

@ -1,14 +1,9 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
#[cfg(feature = "rpc-codegen")]
let builder = tonic_build::configure()
#[cfg(asynchronix_grpc_codegen)]
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/"])?;
.out_dir("src/grpc/codegen/")
.compile(&["simulation.proto"], &["src/grpc/api/"])?;
Ok(())
}