blob: 7f25eca25698a81278bd4d60056ecb5d1b6778d1 [file]
// This file is generated by cargo_embargo.
// Do not modify this file after the first "rust_*" or "genrule" module
// because the changes will be overridden on upgrade.
// Content before the first "rust_*" or "genrule" module is preserved.
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "external_crosvm_license"
// to get the below license kinds:
// SPDX-license-identifier-BSD
default_applicable_licenses: ["external_crosvm_license"],
}
rust_library {
name: "libvhost",
defaults: ["crosvm_defaults"],
host_supported: true,
crate_name: "vhost",
cargo_env_compat: true,
cargo_pkg_version: "0.1.0",
crate_root: "src/lib.rs",
edition: "2021",
rustlibs: [
"libbase_rust",
"liblibc",
"libnet_util",
"libstatic_assertions",
"libthiserror",
"libvirtio_sys",
"libvm_memory",
],
proc_macros: ["libremain"],
apex_available: ["com.android.virt"],
}
rust_test {
name: "vhost_test_tests_linux",
defaults: ["crosvm_defaults"],
host_supported: true,
crate_name: "linux",
cargo_env_compat: true,
cargo_pkg_version: "0.1.0",
crate_root: "tests/linux.rs",
test_suites: ["general-tests"],
auto_gen_config: true,
test_options: {
unit_test: false,
},
edition: "2021",
rustlibs: [
"libbase_rust",
"liblibc",
"libnet_util",
"libstatic_assertions",
"libthiserror",
"libvhost",
"libvirtio_sys",
"libvm_memory",
],
proc_macros: ["libremain"],
}