summaryrefslogtreecommitdiff
path: root/build.rs
blob: 1401ff9a6ef0a4d98e6781e5df074036f6515720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate tower_grpc_build;
extern crate prost_build;

fn main() {
    let mut conf = prost_build::Config::new();
    conf.include_file("_protos.rs");
    tower_grpc_build::Config::from_prost(conf)
        .enable_server(true)
        .enable_client(true)
        .build(
            &[
                "proto/google/bytestream/bytestream.proto",
                "proto/build/bazel/remote/execution/v2/remote_execution.proto",
            ],
            &["proto"],
        )
        .unwrap_or_else(|e| panic!("protobuf compilation failed: {}", e));
}