mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-25 05:09:04 +08:00
ae839bd5bf
issues:958
15 lines
410 B
Rust
15 lines
410 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")
|
|
.customize(
|
|
protobuf_codegen::Customize::default()
|
|
.tokio_bytes(true)
|
|
)
|
|
.run()
|
|
.expect("Codegen failed.");
|
|
}
|