1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5rust_defaults {
6    name: "libclient_vm_csr_defaults",
7    crate_name: "client_vm_csr",
8    srcs: ["src/lib.rs"],
9    rustlibs: [
10        "libanyhow",
11        "libcbor_util",
12        "libcoset",
13        "libdiced_open_dice",
14        "libopenssl",
15        "libservice_vm_comm",
16        "libzeroize",
17    ],
18}
19
20rust_library {
21    name: "libclient_vm_csr",
22    defaults: ["libclient_vm_csr_defaults"],
23    prefer_rlib: true,
24    apex_available: [
25        "com.android.virt",
26    ],
27}
28
29rust_test {
30    name: "libclient_vm_csr.test",
31    defaults: ["libclient_vm_csr_defaults"],
32    test_suites: ["general-tests"],
33    rustlibs: [
34        "libciborium",
35        "libdiced_sample_inputs",
36        "libhwtrust",
37    ],
38}
39