1// This file is generated by cargo_embargo. 2// Do not modify this file after the first "rust_*" or "genrule" module 3// because the changes will be overridden on upgrade. 4// Content before the first "rust_*" or "genrule" module is preserved. 5 6package { 7 // See: http://go/android-license-faq 8 // A large-scale-change added 'default_applicable_licenses' to import 9 // all of the 'license_kinds' from "external_crosvm_license" 10 // to get the below license kinds: 11 // SPDX-license-identifier-BSD 12 default_applicable_licenses: ["external_crosvm_license"], 13} 14 15rust_library { 16 name: "libvhost", 17 defaults: ["crosvm_inner_defaults"], 18 host_supported: true, 19 crate_name: "vhost", 20 cargo_env_compat: true, 21 cargo_pkg_version: "0.1.0", 22 crate_root: "src/lib.rs", 23 edition: "2021", 24 rustlibs: [ 25 "libbase_rust", 26 "liblibc", 27 "libnet_util", 28 "libstatic_assertions", 29 "libthiserror", 30 "libvirtio_sys", 31 "libvm_memory", 32 ], 33 proc_macros: ["libremain"], 34} 35 36rust_test { 37 name: "vhost_test_tests_linux", 38 defaults: ["crosvm_inner_defaults"], 39 host_supported: true, 40 crate_name: "linux", 41 cargo_env_compat: true, 42 cargo_pkg_version: "0.1.0", 43 crate_root: "tests/linux.rs", 44 test_suites: ["general-tests"], 45 auto_gen_config: true, 46 test_options: { 47 unit_test: false, 48 }, 49 edition: "2021", 50 rustlibs: [ 51 "libbase_rust", 52 "liblibc", 53 "libnet_util", 54 "libstatic_assertions", 55 "libthiserror", 56 "libvhost", 57 "libvirtio_sys", 58 "libvm_memory", 59 ], 60 proc_macros: ["libremain"], 61} 62