mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2024-11-27 14:59:21 +08:00
15 lines
442 B
Rust
15 lines
442 B
Rust
fn main() {
|
|
let out_dir = format!("{}/protos", std::env::var("OUT_DIR").unwrap());
|
|
|
|
std::fs::create_dir_all(&out_dir).unwrap();
|
|
|
|
protobuf_codegen::Codegen::new()
|
|
.pure()
|
|
.out_dir(out_dir)
|
|
.inputs(["protos/rendezvous.proto", "protos/message.proto"])
|
|
.include("protos")
|
|
.customize(protobuf_codegen::Customize::default().tokio_bytes(true))
|
|
.run()
|
|
.expect("Codegen failed.");
|
|
}
|