forked from ROMEO/nexosim
Simplify gRPC backend arch + remove wasm backend
This commit is contained in:
@ -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(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user