// This file is generated by cargo2android.py --run --device --tests --dependencies --global_defaults=crosvm_defaults --add_workspace. // Do not modify this file as changes will be overridden on upgrade. 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_defaults { name: "hypervisor_defaults", defaults: ["crosvm_defaults"], crate_name: "hypervisor", // has rustc warnings srcs: ["src/lib.rs"], test_suites: ["general-tests"], auto_gen_config: true, edition: "2018", rustlibs: [ "libbase_rust", "libbit_field", "libdata_model", "libdowncast_rs", "libkvm", "libkvm_sys", "liblibc", "libserde", "libsync_rust", "libvm_memory", ], proc_macros: ["libenumn"], } rust_test_host { name: "hypervisor_host_test_src_lib", defaults: ["hypervisor_defaults"], test_options: { unit_test: true, }, } rust_test { name: "hypervisor_device_test_src_lib", defaults: ["hypervisor_defaults"], } rust_library { name: "libhypervisor", defaults: ["crosvm_defaults"], // has rustc warnings host_supported: true, crate_name: "hypervisor", srcs: ["src/lib.rs"], edition: "2018", rustlibs: [ "libbase_rust", "libbit_field", "libdata_model", "libdowncast_rs", "libkvm", "libkvm_sys", "liblibc", "libserde", "libsync_rust", "libvm_memory", ], proc_macros: ["libenumn"], } // dependent_library ["feature_list"] // ../assertions/src/lib.rs // ../base/src/lib.rs // ../bit_field/bit_field_derive/bit_field_derive.rs // ../bit_field/src/lib.rs // ../cros_async/src/lib.rs // ../data_model/src/lib.rs // ../enumn/src/lib.rs // ../io_uring/src/lib.rs // ../kvm/src/lib.rs // ../kvm_sys/src/lib.rs // ../sync/src/lib.rs // ../sys_util/poll_token_derive/poll_token_derive.rs // ../sys_util/src/lib.rs // ../tempfile/src/lib.rs // ../vm_memory/src/lib.rs // async-task-4.0.3 "default,std" // async-trait-0.1.50 // autocfg-1.0.1 // bitflags-1.2.1 "default" // downcast-rs-1.2.0 "default,std" // futures-0.3.14 "alloc" // futures-channel-0.3.14 "alloc,futures-sink,sink" // futures-core-0.3.14 "alloc" // futures-io-0.3.14 // futures-sink-0.3.14 "alloc" // futures-task-0.3.14 "alloc" // futures-util-0.3.14 "alloc,futures-sink,sink" // intrusive-collections-0.9.0 "alloc,default" // itoa-0.4.7 // libc-0.2.93 "default,std" // memoffset-0.5.6 "default" // paste-1.0.5 // pin-project-lite-0.2.6 // pin-utils-0.1.0 // proc-macro2-1.0.26 "default,proc-macro" // quote-1.0.9 "default,proc-macro" // ryu-1.0.5 // serde-1.0.125 "default,derive,serde_derive,std" // serde_derive-1.0.125 "default" // serde_json-1.0.64 "default,std" // slab-0.4.3 "default,std" // smallvec-1.6.1 // syn-1.0.70 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote,visit-mut" // thiserror-1.0.24 // thiserror-impl-1.0.24 // unicode-xid-0.2.1 "default"