Loading tools/aconfig/Cargo.toml +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ members = [ "aconfig_protos", "aconfig_storage_file", "aconfig_storage_read_api", "aconfig_storage_write_api", "aflags", "printflags" ] Loading tools/aconfig/aconfig_storage_file/Android.bp +25 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,9 @@ rust_defaults { "libanyhow", "libthiserror", "libtempfile", "libprotobuf", "libclap", "libaconfig_storage_protos", ], } Loading @@ -26,3 +29,25 @@ rust_test_host { test_suites: ["general-tests"], defaults: ["aconfig_storage_file.defaults"], } rust_protobuf { name: "libaconfig_storage_protos", protos: ["protos/aconfig_storage_metadata.proto"], crate_name: "aconfig_storage_protos", source_stem: "aconfig_storage_protos", host_supported: true, } cc_library_static { name: "libaconfig_storage_protos_cc", proto: { export_proto_headers: true, type: "lite", }, srcs: ["protos/aconfig_storage_metadata.proto"], apex_available: [ "//apex_available:platform", "//apex_available:anyapex", ], host_supported: true, } tools/aconfig/aconfig_storage_file/Cargo.toml +0 −3 Original line number Diff line number Diff line Loading @@ -9,11 +9,8 @@ cargo = [] [dependencies] anyhow = "1.0.69" memmap2 = "0.8.0" protobuf = "3.2.0" once_cell = "1.19.0" tempfile = "3.9.0" cxx = "1.0" thiserror = "1.0.56" clap = { version = "4.1.8", features = ["derive"] } Loading tools/aconfig/aconfig_storage_file/build.rs 0 → 100644 +17 −0 Original line number Diff line number Diff line 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(); } tools/aconfig/aconfig_storage_read_api/protos/aconfig_storage_metadata.proto→tools/aconfig/aconfig_storage_file/protos/aconfig_storage_metadata.proto +0 −0 File moved. View file Loading
tools/aconfig/Cargo.toml +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ members = [ "aconfig_protos", "aconfig_storage_file", "aconfig_storage_read_api", "aconfig_storage_write_api", "aflags", "printflags" ] Loading
tools/aconfig/aconfig_storage_file/Android.bp +25 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,9 @@ rust_defaults { "libanyhow", "libthiserror", "libtempfile", "libprotobuf", "libclap", "libaconfig_storage_protos", ], } Loading @@ -26,3 +29,25 @@ rust_test_host { test_suites: ["general-tests"], defaults: ["aconfig_storage_file.defaults"], } rust_protobuf { name: "libaconfig_storage_protos", protos: ["protos/aconfig_storage_metadata.proto"], crate_name: "aconfig_storage_protos", source_stem: "aconfig_storage_protos", host_supported: true, } cc_library_static { name: "libaconfig_storage_protos_cc", proto: { export_proto_headers: true, type: "lite", }, srcs: ["protos/aconfig_storage_metadata.proto"], apex_available: [ "//apex_available:platform", "//apex_available:anyapex", ], host_supported: true, }
tools/aconfig/aconfig_storage_file/Cargo.toml +0 −3 Original line number Diff line number Diff line Loading @@ -9,11 +9,8 @@ cargo = [] [dependencies] anyhow = "1.0.69" memmap2 = "0.8.0" protobuf = "3.2.0" once_cell = "1.19.0" tempfile = "3.9.0" cxx = "1.0" thiserror = "1.0.56" clap = { version = "4.1.8", features = ["derive"] } Loading
tools/aconfig/aconfig_storage_file/build.rs 0 → 100644 +17 −0 Original line number Diff line number Diff line 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(); }
tools/aconfig/aconfig_storage_read_api/protos/aconfig_storage_metadata.proto→tools/aconfig/aconfig_storage_file/protos/aconfig_storage_metadata.proto +0 −0 File moved. View file