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_test { 16 name: "arch_test_src_lib", 17 defaults: ["crosvm_inner_defaults"], 18 host_supported: true, 19 crate_name: "arch", 20 cargo_env_compat: true, 21 cargo_pkg_version: "0.1.0", 22 srcs: ["src/lib.rs"], 23 test_suites: ["general-tests"], 24 auto_gen_config: true, 25 test_options: { 26 unit_test: true, 27 }, 28 edition: "2021", 29 features: [ 30 "gdb", 31 "gdbstub", 32 "gdbstub_arch", 33 ], 34 rustlibs: [ 35 "libacpi_tables", 36 "libanyhow", 37 "libbase_rust", 38 "libcfg_if", 39 "libcros_fdt", 40 "libcros_tracing", 41 "libdevices", 42 "libgdbstub", 43 "libgdbstub_arch", 44 "libhypervisor", 45 "libjail", 46 "libkernel_cmdline", 47 "liblibc", 48 "libmetrics", 49 "libminijail_rust", 50 "libpower_monitor", 51 "libresources", 52 "libserde", 53 "libserde_json", 54 "libserde_keyvalue", 55 "libswap", 56 "libsync_rust", 57 "libthiserror", 58 "libuuid", 59 "libvm_control", 60 "libvm_memory", 61 ], 62 proc_macros: ["libremain"], 63} 64 65rust_library { 66 name: "libarch", 67 defaults: ["crosvm_inner_defaults"], 68 host_supported: true, 69 crate_name: "arch", 70 cargo_env_compat: true, 71 cargo_pkg_version: "0.1.0", 72 srcs: ["src/lib.rs"], 73 edition: "2021", 74 features: [ 75 "gdb", 76 "gdbstub", 77 "gdbstub_arch", 78 ], 79 rustlibs: [ 80 "libacpi_tables", 81 "libanyhow", 82 "libbase_rust", 83 "libcfg_if", 84 "libcros_fdt", 85 "libcros_tracing", 86 "libdevices", 87 "libgdbstub", 88 "libgdbstub_arch", 89 "libhypervisor", 90 "libjail", 91 "libkernel_cmdline", 92 "liblibc", 93 "libmetrics", 94 "libminijail_rust", 95 "libpower_monitor", 96 "libresources", 97 "libserde", 98 "libserde_json", 99 "libserde_keyvalue", 100 "libswap", 101 "libsync_rust", 102 "libthiserror", 103 "libuuid", 104 "libvm_control", 105 "libvm_memory", 106 ], 107 proc_macros: ["libremain"], 108} 109