-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.rs
26 lines (22 loc) · 710 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
//extern crate protoc;
//extern crate protoc_rust;
extern crate protoc_rust_grpc;
//use protoc_rust::Customize;
fn main() {
println!("Starting build");
// protoc_rust::run(protoc_rust::Args {
// out_dir: "src/proto",
// input: &["proto/shorty.proto"],
// includes: &["proto"],
// customize: Customize {
// ..Default::default()
// },
// }).expect("protoc");
protoc_rust_grpc::run(protoc_rust_grpc::Args {
out_dir: "src",
includes: &["proto"],
input: &["proto/shorty.proto"],
rust_protobuf: true, // also generate protobuf messages, not just services
..Default::default()
}).expect("protoc-rust-grpc");
}