1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5rust_binary {
6    name: "vfio_handler",
7    crate_name: "vfio_handler",
8    defaults: ["avf_build_flags_rust"],
9    edition: "2021",
10    srcs: ["src/main.rs"],
11    // Only build on targets which crosvm builds on.
12    enabled: false,
13    target: {
14        android64: {
15            compile_multilib: "64",
16            enabled: true,
17        },
18        linux_bionic_arm64: {
19            enabled: true,
20        },
21    },
22    prefer_rlib: true,
23    rustlibs: [
24        "android.system.virtualizationservice_internal-rust",
25        "libandroid_logger",
26        "libanyhow",
27        "libbinder_rs",
28        "liblog_rust",
29        "libnix",
30        "librustutils",
31        "libzerocopy",
32    ],
33    apex_available: ["com.android.virt"],
34}
35