rustdesk/libs/hbb_common/build.rs

11 lines
298 B
Rust

fn main() {
std::fs::create_dir_all("src/protos").unwrap();
protobuf_codegen::Codegen::new()
.pure()
.out_dir("src/protos")
.inputs(&["protos/rendezvous.proto", "protos/message.proto"])
.include("protos")
.run()
.expect("Codegen failed.");
}