blob: b556f0b3d5ce5f01b6dac172dbac2f557c79439b [file] [log] [blame] [edit]
// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0.
#[cfg(feature = "gen")]
fn generate_protobuf_binding_file() {
protobuf_codegen_pure::run(protobuf_codegen_pure::Args {
out_dir: "proto",
input: &["proto/proto_model.proto"],
includes: &["proto"],
..Default::default()
})
.unwrap();
}
#[cfg(not(feature = "gen"))]
fn generate_protobuf_binding_file() {}
fn main() {
generate_protobuf_binding_file()
}