1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5rust_defaults {
6    name: "encryptedstore.defaults",
7    defaults: ["avf_build_flags_rust"],
8    srcs: ["src/main.rs"],
9    edition: "2021",
10    prefer_rlib: true,
11    rustlibs: [
12        "libandroid_logger",
13        "libanyhow",
14        "liblibc",
15        "libclap",
16        "libhex",
17        "liblog_rust",
18        "libmicrodroid_uids",
19        "libnix",
20        "libdm_rust",
21    ],
22    multilib: {
23        lib32: {
24            enabled: false,
25        },
26    },
27}
28
29rust_binary {
30    name: "encryptedstore",
31    defaults: ["encryptedstore.defaults"],
32    bootstrap: true,
33}
34
35rust_test {
36    name: "encryptedstore.test",
37    defaults: ["encryptedstore.defaults"],
38    test_suites: ["general-tests"],
39}
40