use protobuf_codegen::Codegen;
fn main() {
let proto_files = vec!["protos/aconfig.proto"];
// tell cargo to only re-run the build script if any of the proto files has changed
for path in &proto_files {
println!("cargo:rerun-if-changed={path}");
}
Codegen::new()
.pure()
.include("protos")
.inputs(proto_files)
.cargo_out_dir("aconfig_proto")
.run_from_script();
}
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-04)
¤
*© Formatika GbR, Deutschland