1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5rust_library_rlib { 6 name: "libhypervisor_backends", 7 crate_name: "hypervisor_backends", 8 defaults: ["avf_build_flags_rust"], 9 edition: "2021", 10 prefer_rlib: true, 11 host_supported: false, 12 no_stdlibs: true, 13 srcs: ["src/lib.rs"], 14 enabled: false, 15 stdlibs: [ 16 "libcompiler_builtins.rust_sysroot", 17 "libcore.rust_sysroot", 18 ], 19 target: { 20 android_arm64: { 21 rustlibs: [ 22 "libonce_cell_nostd", 23 "libsmccc", 24 "libthiserror_nostd", 25 "libuuid_nostd", 26 ], 27 enabled: true, 28 }, 29 android_x86_64: { 30 rustlibs: [ 31 "libonce_cell_nostd", 32 "libthiserror_nostd", 33 ], 34 enabled: true, 35 }, 36 }, 37} 38 39dirgroup { 40 name: "trusty_dirgroup_packages_modules_virtualization_libs_libhypervisor_backends", 41 visibility: ["//trusty/vendor/google/aosp/scripts"], 42 dirs: ["."], 43} 44