-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.rs
30 lines (28 loc) · 906 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
30
extern crate protoc_grpcio;
use protoc_grpcio::compile_grpc_protos;
fn main() {
let proto_root = "helm/_proto";
let output_dir = "src";
// println!("cargo:rerun-if-changed={}", proto_root);
compile_grpc_protos(
&[
"hapi/chart/chart.proto",
"hapi/chart/config.proto",
"hapi/chart/metadata.proto",
"hapi/chart/template.proto",
"hapi/release/hook.proto",
"hapi/release/info.proto",
"hapi/release/release.proto",
"hapi/release/status.proto",
"hapi/release/test_run.proto",
"hapi/release/test_suite.proto",
"hapi/rudder/rudder.proto",
"hapi/services/tiller.proto",
"hapi/version/version.proto",
],
&[proto_root],
&output_dir,
None,
)
.expect("Failed to compile helm proto definitions");
}