rustdesk/libs/hbb_common/build.rs

15 lines
410 B
Rust
Raw Normal View History

2021-03-29 15:59:14 +08:00
fn main() {
std::fs::create_dir_all("src/protos").unwrap();
protobuf_codegen::Codegen::new()
.pure()
2021-03-29 15:59:14 +08:00
.out_dir("src/protos")
2022-01-10 18:05:42 +08:00
.inputs(&["protos/rendezvous.proto", "protos/message.proto"])
2021-03-29 15:59:14 +08:00
.include("protos")
.customize(
protobuf_codegen::Customize::default()
.tokio_bytes(true)
)
2021-03-29 15:59:14 +08:00
.run()
.expect("Codegen failed.");
}