-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.rs
29 lines (27 loc) · 881 Bytes
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Build the VM's protobuf into a Rust server
fn main() -> Result<(), Box<dyn std::error::Error>> {
// The servers we'll expose
tonic_build::configure()
.build_client(false)
.format(true)
.compile(&["proto/vm.proto", "proto/ghttp.proto"], &["proto"])?;
// the clients we'll consume
tonic_build::configure()
.build_server(false)
.format(true)
.compile(
&[
"proto/appsender.proto",
"proto/galiasreader.proto",
"proto/gkeystore.proto",
"proto/gsharedmemory.proto",
"proto/gsubnetlookup.proto",
"proto/messenger.proto",
"proto/rpcdb.proto",
"proto/greadcloser.proto",
"proto/gresponsewriter.proto",
],
&["proto"],
)?;
Ok(())
}