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: ["external_crosvm_license"], 8 default_team: "trendy_team_foundation_security_rust_pkvm_", 9} 10 11rust_test { 12 name: "hypervisor_test_src_lib", 13 defaults: ["crosvm_inner_defaults"], 14 host_supported: true, 15 crate_name: "hypervisor", 16 cargo_env_compat: true, 17 cargo_pkg_version: "0.1.0", 18 crate_root: "src/lib.rs", 19 test_suites: ["general-tests"], 20 auto_gen_config: true, 21 test_options: { 22 unit_test: false, 23 }, 24 edition: "2021", 25 features: [ 26 "geniezone", 27 "gunyah", 28 ], 29 rustlibs: [ 30 "libanyhow", 31 "libbase_rust", 32 "libbit_field_crosvm", 33 "libbitflags", 34 "libcros_fdt", 35 "libdata_model", 36 "libdowncast_rs", 37 "libfnv", 38 "libkvm_sys", 39 "liblibc", 40 "libonce_cell", 41 "libserde", 42 "libserde_json", 43 "libsync_rust", 44 "libvm_memory", 45 "libzerocopy", 46 ], 47 proc_macros: [ 48 "libenumn", 49 "libhypervisor_test_macro", 50 ], 51} 52 53rust_test { 54 name: "hypervisor_test_tests_dirty_log", 55 defaults: ["crosvm_inner_defaults"], 56 host_supported: true, 57 crate_name: "dirty_log", 58 cargo_env_compat: true, 59 cargo_pkg_version: "0.1.0", 60 crate_root: "tests/dirty_log.rs", 61 test_suites: ["general-tests"], 62 auto_gen_config: true, 63 test_options: { 64 unit_test: false, 65 }, 66 edition: "2021", 67 features: [ 68 "geniezone", 69 "gunyah", 70 ], 71 rustlibs: [ 72 "libanyhow", 73 "libbase_rust", 74 "libbit_field_crosvm", 75 "libbitflags", 76 "libcros_fdt", 77 "libdata_model", 78 "libdowncast_rs", 79 "libfnv", 80 "libhypervisor", 81 "libkvm_sys", 82 "liblibc", 83 "libonce_cell", 84 "libserde", 85 "libserde_json", 86 "libsync_rust", 87 "libvm_memory", 88 "libzerocopy", 89 ], 90 proc_macros: [ 91 "libenumn", 92 "libhypervisor_test_macro", 93 ], 94} 95 96rust_test { 97 name: "hypervisor_test_tests_hypervisor_virtualization", 98 defaults: ["crosvm_inner_defaults"], 99 host_supported: true, 100 crate_name: "hypervisor_virtualization", 101 cargo_env_compat: true, 102 cargo_pkg_version: "0.1.0", 103 crate_root: "tests/hypervisor_virtualization.rs", 104 test_suites: ["general-tests"], 105 auto_gen_config: true, 106 test_options: { 107 unit_test: false, 108 }, 109 edition: "2021", 110 features: [ 111 "geniezone", 112 "gunyah", 113 ], 114 rustlibs: [ 115 "libanyhow", 116 "libbase_rust", 117 "libbit_field_crosvm", 118 "libbitflags", 119 "libcros_fdt", 120 "libdata_model", 121 "libdowncast_rs", 122 "libfnv", 123 "libhypervisor", 124 "libkvm_sys", 125 "liblibc", 126 "libonce_cell", 127 "libserde", 128 "libserde_json", 129 "libsync_rust", 130 "libvm_memory", 131 "libzerocopy", 132 ], 133 proc_macros: [ 134 "libenumn", 135 "libhypervisor_test_macro", 136 ], 137} 138 139rust_test { 140 name: "hypervisor_test_tests_kvm_main", 141 defaults: ["crosvm_inner_defaults"], 142 host_supported: true, 143 crate_name: "kvm", 144 cargo_env_compat: true, 145 cargo_pkg_version: "0.1.0", 146 crate_root: "tests/kvm/main.rs", 147 test_suites: ["general-tests"], 148 auto_gen_config: true, 149 test_options: { 150 unit_test: false, 151 }, 152 edition: "2021", 153 features: [ 154 "geniezone", 155 "gunyah", 156 ], 157 rustlibs: [ 158 "libanyhow", 159 "libbase_rust", 160 "libbit_field_crosvm", 161 "libbitflags", 162 "libcros_fdt", 163 "libdata_model", 164 "libdowncast_rs", 165 "libfnv", 166 "libhypervisor", 167 "libkvm_sys", 168 "liblibc", 169 "libonce_cell", 170 "libserde", 171 "libserde_json", 172 "libsync_rust", 173 "libvm_memory", 174 "libzerocopy", 175 ], 176 proc_macros: [ 177 "libenumn", 178 "libhypervisor_test_macro", 179 ], 180} 181 182rust_test { 183 name: "hypervisor_test_tests_mmio_and_pio", 184 defaults: ["crosvm_inner_defaults"], 185 host_supported: true, 186 crate_name: "mmio_and_pio", 187 cargo_env_compat: true, 188 cargo_pkg_version: "0.1.0", 189 crate_root: "tests/mmio_and_pio.rs", 190 test_suites: ["general-tests"], 191 auto_gen_config: true, 192 test_options: { 193 unit_test: false, 194 }, 195 edition: "2021", 196 features: [ 197 "geniezone", 198 "gunyah", 199 ], 200 rustlibs: [ 201 "libanyhow", 202 "libbase_rust", 203 "libbit_field_crosvm", 204 "libbitflags", 205 "libcros_fdt", 206 "libdata_model", 207 "libdowncast_rs", 208 "libfnv", 209 "libhypervisor", 210 "libkvm_sys", 211 "liblibc", 212 "libonce_cell", 213 "libserde", 214 "libserde_json", 215 "libsync_rust", 216 "libvm_memory", 217 "libzerocopy", 218 ], 219 proc_macros: [ 220 "libenumn", 221 "libhypervisor_test_macro", 222 ], 223} 224 225rust_test { 226 name: "hypervisor_test_tests_read_only_memory", 227 defaults: ["crosvm_inner_defaults"], 228 host_supported: true, 229 crate_name: "read_only_memory", 230 cargo_env_compat: true, 231 cargo_pkg_version: "0.1.0", 232 crate_root: "tests/read_only_memory.rs", 233 test_suites: ["general-tests"], 234 auto_gen_config: true, 235 test_options: { 236 unit_test: false, 237 }, 238 edition: "2021", 239 features: [ 240 "geniezone", 241 "gunyah", 242 ], 243 rustlibs: [ 244 "libanyhow", 245 "libbase_rust", 246 "libbit_field_crosvm", 247 "libbitflags", 248 "libcros_fdt", 249 "libdata_model", 250 "libdowncast_rs", 251 "libfnv", 252 "libhypervisor", 253 "libkvm_sys", 254 "liblibc", 255 "libonce_cell", 256 "libserde", 257 "libserde_json", 258 "libsync_rust", 259 "libvm_memory", 260 "libzerocopy", 261 ], 262 proc_macros: [ 263 "libenumn", 264 "libhypervisor_test_macro", 265 ], 266} 267 268rust_test { 269 name: "hypervisor_test_tests_real_run_addr", 270 defaults: ["crosvm_inner_defaults"], 271 host_supported: true, 272 crate_name: "real_run_addr", 273 cargo_env_compat: true, 274 cargo_pkg_version: "0.1.0", 275 crate_root: "tests/real_run_addr.rs", 276 test_suites: ["general-tests"], 277 auto_gen_config: true, 278 test_options: { 279 unit_test: false, 280 }, 281 edition: "2021", 282 features: [ 283 "geniezone", 284 "gunyah", 285 ], 286 rustlibs: [ 287 "libanyhow", 288 "libbase_rust", 289 "libbit_field_crosvm", 290 "libbitflags", 291 "libcros_fdt", 292 "libdata_model", 293 "libdowncast_rs", 294 "libfnv", 295 "libhypervisor", 296 "libkvm_sys", 297 "liblibc", 298 "libonce_cell", 299 "libserde", 300 "libserde_json", 301 "libsync_rust", 302 "libvm_memory", 303 "libzerocopy", 304 ], 305 proc_macros: [ 306 "libenumn", 307 "libhypervisor_test_macro", 308 ], 309} 310 311rust_test { 312 name: "hypervisor_test_tests_remove_memory", 313 defaults: ["crosvm_inner_defaults"], 314 host_supported: true, 315 crate_name: "remove_memory", 316 cargo_env_compat: true, 317 cargo_pkg_version: "0.1.0", 318 crate_root: "tests/remove_memory.rs", 319 test_suites: ["general-tests"], 320 auto_gen_config: true, 321 test_options: { 322 unit_test: false, 323 }, 324 edition: "2021", 325 features: [ 326 "geniezone", 327 "gunyah", 328 ], 329 rustlibs: [ 330 "libanyhow", 331 "libbase_rust", 332 "libbit_field_crosvm", 333 "libbitflags", 334 "libcros_fdt", 335 "libdata_model", 336 "libdowncast_rs", 337 "libfnv", 338 "libhypervisor", 339 "libkvm_sys", 340 "liblibc", 341 "libonce_cell", 342 "libserde", 343 "libserde_json", 344 "libsync_rust", 345 "libvm_memory", 346 "libzerocopy", 347 ], 348 proc_macros: [ 349 "libenumn", 350 "libhypervisor_test_macro", 351 ], 352} 353 354rust_test { 355 name: "hypervisor_test_tests_tsc_offsets", 356 defaults: ["crosvm_inner_defaults"], 357 host_supported: true, 358 crate_name: "tsc_offsets", 359 cargo_env_compat: true, 360 cargo_pkg_version: "0.1.0", 361 crate_root: "tests/tsc_offsets.rs", 362 test_suites: ["general-tests"], 363 auto_gen_config: true, 364 test_options: { 365 unit_test: false, 366 }, 367 edition: "2021", 368 features: [ 369 "geniezone", 370 "gunyah", 371 ], 372 rustlibs: [ 373 "libanyhow", 374 "libbase_rust", 375 "libbit_field_crosvm", 376 "libbitflags", 377 "libcros_fdt", 378 "libdata_model", 379 "libdowncast_rs", 380 "libfnv", 381 "libhypervisor", 382 "libkvm_sys", 383 "liblibc", 384 "libonce_cell", 385 "libserde", 386 "libserde_json", 387 "libsync_rust", 388 "libvm_memory", 389 "libzerocopy", 390 ], 391 proc_macros: [ 392 "libenumn", 393 "libhypervisor_test_macro", 394 ], 395} 396 397rust_library { 398 name: "libhypervisor", 399 defaults: ["crosvm_inner_defaults"], 400 host_supported: true, 401 crate_name: "hypervisor", 402 cargo_env_compat: true, 403 cargo_pkg_version: "0.1.0", 404 crate_root: "src/lib.rs", 405 edition: "2021", 406 features: [ 407 "geniezone", 408 "gunyah", 409 ], 410 rustlibs: [ 411 "libanyhow", 412 "libbase_rust", 413 "libbit_field_crosvm", 414 "libbitflags", 415 "libcros_fdt", 416 "libdata_model", 417 "libdowncast_rs", 418 "libfnv", 419 "libkvm_sys", 420 "liblibc", 421 "libonce_cell", 422 "libserde", 423 "libserde_json", 424 "libsync_rust", 425 "libvm_memory", 426 ], 427 proc_macros: ["libenumn"], 428 visibility: ["//vendor:__subpackages__"], 429} 430