1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5rust_defaults {
6    name: "aflags.defaults",
7    edition: "2021",
8    clippy_lints: "android",
9    lints: "android",
10    srcs: ["src/main.rs"],
11    rustlibs: [
12        "libaconfig_device_paths",
13        "libaconfig_flags",
14        "libaconfig_protos",
15        "libaconfigd_protos_rust",
16        "libaconfig_storage_read_api",
17        "libaconfig_storage_file",
18        "libanyhow",
19        "libclap",
20        "libnix",
21        "libprotobuf",
22        "libregex",
23        // TODO: b/371021174 remove this fake dependency once we find a proper strategy to
24        // deal with test aconfig libs are not present in storage because they are never used
25        // by the actual build
26        "libaconfig_test_rust_library",
27    ],
28}
29
30rust_binary {
31    name: "aflags",
32    host_supported: true,
33    defaults: ["aflags.defaults"],
34}
35
36rust_test_host {
37    name: "aflags.test",
38    defaults: ["aflags.defaults"],
39    test_suites: ["general-tests"],
40}
41