Introduce a new proto to capture storage file location for each container. This proto file will appeara as /metadata/aconfig/storage_file_location.pb. Storage service daemon is responsible for writing entires to it when a new storage file set is available. The flag read lib will use this file to find the corresponding storage file and mmap them. Bug: b/321077378 Test: atest aconfig_storage_file.test Change-Id: I226e76be895805dce52a075050dcd5b42d337be8
18 lines
463 B
Rust
18 lines
463 B
Rust
use protobuf_codegen::Codegen;
|
|
|
|
fn main() {
|
|
let proto_files = vec!["protos/aconfig_storage_metadata.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_storage_protos")
|
|
.run_from_script();
|
|
}
|