aboutsummaryrefslogtreecommitdiffhomepage
path: root/libs/hbb_common/build.rs
blob: bff0cfafc04f7f591f108dbb1b592e946ed2e578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.");
}