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 default_applicable_licenses: [ 8 "external_crosvm_third_party_vmm_vhost_license", 9 ], 10} 11 12// Added automatically by a large-scale-change that took the approach of 13// 'apply every license found to every target'. While this makes sure we respect 14// every license restriction, it may not be entirely correct. 15// 16// e.g. GPL in an MIT project might only apply to the contrib/ directory. 17// 18// Please consider splitting the single license below into multiple licenses, 19// taking care not to lose any license_kind information, and overriding the 20// default license using the 'licenses: [...]' property on targets as needed. 21// 22// For unused files, consider creating a 'fileGroup' with "//visibility:private" 23// to attach the license to, and including a comment whether the files may be 24// used in the current project. 25// 26// large-scale-change included anything that looked like it might be a license 27// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. 28// 29// Please consider removing redundant or irrelevant files from 'license_text:'. 30// See: http://go/android-license-faq 31license { 32 name: "external_crosvm_third_party_vmm_vhost_license", 33 visibility: [":__subpackages__"], 34 license_kinds: [ 35 "SPDX-license-identifier-Apache-2.0", 36 "SPDX-license-identifier-BSD", 37 ], 38 license_text: [ 39 "LICENSE", 40 "LICENSE-BSD-3-Clause", 41 "LICENSE-BSD-Chromium", 42 ], 43} 44 45rust_library { 46 name: "libvmm_vhost", 47 defaults: ["crosvm_inner_defaults"], 48 host_supported: true, 49 crate_name: "vmm_vhost", 50 cargo_env_compat: true, 51 cargo_pkg_version: "0.1.0", 52 srcs: ["src/lib.rs"], 53 edition: "2021", 54 features: ["default"], 55 rustlibs: [ 56 "libanyhow", 57 "libbase_rust", 58 "libbitflags", 59 "libcfg_if", 60 "liblibc", 61 "libtempfile", 62 "libthiserror", 63 "libzerocopy", 64 ], 65 proc_macros: [ 66 "libenumn", 67 "libremain", 68 ], 69} 70 71rust_test { 72 name: "vmm_vhost_test_src_lib", 73 defaults: ["crosvm_inner_defaults"], 74 host_supported: true, 75 crate_name: "vmm_vhost", 76 cargo_env_compat: true, 77 cargo_pkg_version: "0.1.0", 78 srcs: ["src/lib.rs"], 79 test_suites: ["general-tests"], 80 auto_gen_config: true, 81 test_options: { 82 unit_test: true, 83 }, 84 edition: "2021", 85 features: ["default"], 86 rustlibs: [ 87 "libanyhow", 88 "libbase_rust", 89 "libbitflags", 90 "libcfg_if", 91 "liblibc", 92 "libtempfile", 93 "libthiserror", 94 "libzerocopy", 95 ], 96 proc_macros: [ 97 "libenumn", 98 "libremain", 99 ], 100} 101