blob: 5ef5b6090f2bcb3124f23804ffc7a798df0fa2b2 [file] [log] [blame]
MÃ¥rten Kongstadfe753f52023-04-26 09:13:03 +02001use protobuf_codegen::Codegen;
2
3fn main() {
4 let proto_files = vec!["protos/aconfig.proto"];
5
6 // tell cargo to only re-run the build script if any of the proto files has changed
7 for path in &proto_files {
8 println!("cargo:rerun-if-changed={}", path);
9 }
10
11 Codegen::new()
12 .pure()
13 .include("protos")
14 .inputs(proto_files)
15 .cargo_out_dir("aconfig_proto")
16 .run_from_script();
17}