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