sync rustdesk's hbb_common here

This commit is contained in:
rustdesk
2023-01-27 11:00:59 +08:00
parent 2314783d42
commit 17ddc89bd0
7 changed files with 192 additions and 16 deletions

View File

@@ -1,8 +1,11 @@
fn main() {
std::fs::create_dir_all("src/protos").unwrap();
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("src/protos")
.out_dir(out_dir)
.inputs(&["protos/rendezvous.proto", "protos/message.proto"])
.include("protos")
.customize(