-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.rs
26 lines (26 loc) · 870 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
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(true)
.build_client(true)
.format(true)
.compile(
&[
"apis/proto/v1/payload/payload.proto",
"apis/proto/v1/vald/insert.proto",
"apis/proto/v1/vald/object.proto",
"apis/proto/v1/vald/remove.proto",
"apis/proto/v1/vald/search.proto",
"apis/proto/v1/vald/update.proto",
"apis/proto/v1/vald/upsert.proto",
"apis/proto/v1/agent/core/agent.proto",
],
&[
".",
"proto",
"proto/github.com/gogo/googleapis",
"proto/github.com/protocolbuffers/protobuf",
"apis/proto",
],
)?;
Ok(())
}