Monorepo consolidation: workspace, shared types, transport plans, docker/swam assets
This commit is contained in:
12
gateway/build.rs
Normal file
12
gateway/build.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let proto_path = "../aggregate/proto/aggregate.proto";
|
||||
let proto_dir = "../aggregate/proto";
|
||||
|
||||
tonic_build::configure()
|
||||
.build_server(true)
|
||||
.build_client(true)
|
||||
.compile_protos(&[proto_path], &[proto_dir])?;
|
||||
|
||||
println!("cargo:rerun-if-changed={}", proto_path);
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user