forked from ROMEO/nexosim
Initial (g)RPC implementation
This commit is contained in:
17
asynchronix/build.rs
Normal file
17
asynchronix/build.rs
Normal file
@ -0,0 +1,17 @@
|
||||
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-server")))]
|
||||
let builder = builder.build_server(false);
|
||||
|
||||
#[cfg(feature = "rpc-codegen")]
|
||||
builder.compile(
|
||||
&["simulation.proto", "custom_transport.proto"],
|
||||
&["src/rpc/api/"],
|
||||
)?;
|
||||
|
||||
Ok(())
|
||||
}
|
Reference in New Issue
Block a user