rustdesk-server/libs/hbb_common/build.rs

15 lines
410 B
Rust
Raw Normal View History

2022-05-12 20:07:45 +08:00
fn main() {
std::fs::create_dir_all("src/protos").unwrap();
2022-07-22 00:28:10 +08:00
protobuf_codegen::Codegen::new()
.pure()
2022-05-12 20:07:45 +08:00
.out_dir("src/protos")
.inputs(&["protos/rendezvous.proto", "protos/message.proto"])
.include("protos")
2022-07-22 00:28:10 +08:00
.customize(
protobuf_codegen::Customize::default()
.tokio_bytes(true)
)
2022-05-12 20:07:45 +08:00
.run()
.expect("Codegen failed.");
}