esphome-proto/build.rs

13 lines
358 B
Rust

fn main() {
#[cfg(feature = "codegen")]
{
protobuf_codegen::Codegen::new()
.protoc()
.protoc_extra_arg("--include_source_info")
.includes(&["src"])
.input("src/api.proto")
.input("src/api_options.proto")
.out_dir("src/generated")
.run_from_script();
}
}