13 lines
330 B
Rust
13 lines
330 B
Rust
|
|
fn main() {
|
||
|
|
let protoc = protoc_bin_vendored::protoc_bin_path().expect("failed to fetch protoc");
|
||
|
|
unsafe {
|
||
|
|
std::env::set_var("PROTOC", protoc);
|
||
|
|
}
|
||
|
|
|
||
|
|
tonic_build::configure()
|
||
|
|
.build_server(false)
|
||
|
|
.compile(&["proto/control.proto"], &["proto"])
|
||
|
|
.expect("failed to compile protobuf");
|
||
|
|
}
|
||
|
|
|