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: "libvm_memory", 17 defaults: ["crosvm_defaults"], 18 host_supported: true, 19 crate_name: "vm_memory", 20 cargo_env_compat: true, 21 cargo_pkg_version: "0.1.0", 22 crate_root: "src/lib.rs", 23 edition: "2021", 24 rustlibs: [ 25 "libanyhow", 26 "libbase_rust", 27 "libbitflags", 28 "libcfg_if", 29 "libcros_async", 30 "libdata_model", 31 "liblibc", 32 "liblz4_flex", 33 "libserde", 34 "libserde_json", 35 "libserde_keyvalue", 36 "libsnapshot_crosvm", 37 "libthiserror", 38 "libzerocopy", 39 ], 40 proc_macros: ["libremain"], 41 apex_available: ["com.android.virt"], 42} 43 44rust_test { 45 name: "vm_memory_test_src_lib", 46 defaults: ["crosvm_defaults"], 47 host_supported: true, 48 crate_name: "vm_memory", 49 cargo_env_compat: true, 50 cargo_pkg_version: "0.1.0", 51 crate_root: "src/lib.rs", 52 test_suites: ["general-tests"], 53 auto_gen_config: true, 54 test_options: { 55 unit_test: true, 56 }, 57 edition: "2021", 58 rustlibs: [ 59 "libanyhow", 60 "libbase_rust", 61 "libbitflags", 62 "libcfg_if", 63 "libcros_async", 64 "libdata_model", 65 "liblibc", 66 "liblz4_flex", 67 "libserde", 68 "libserde_json", 69 "libserde_keyvalue", 70 "libsnapshot_crosvm", 71 "libtempfile", 72 "libthiserror", 73 "libzerocopy", 74 ], 75 proc_macros: ["libremain"], 76} 77