rustdesk-server/libs/hbb_common/build.rs

12 lines
374 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")
2022-08-02 15:52:01 +08:00
.inputs(["protos/rendezvous.proto", "protos/message.proto"])
2022-05-12 20:07:45 +08:00
.include("protos")
2022-08-04 17:02:10 +08:00
.customize(protobuf_codegen::Customize::default().tokio_bytes(true))
2022-05-12 20:07:45 +08:00
.run()
.expect("Codegen failed.");
}