mirror of
https://github.com/GiriNeko/hbb_common.git
synced 2025-12-16 05:17:30 +00:00
init
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
commit
49c6b24a7a
25 changed files with 8401 additions and 0 deletions
14
build.rs
Normal file
14
build.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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.");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue