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_rust_crates_virtio-drivers_license", 9 ], 10} 11 12// Added automatically by a large-scale-change 13// See: http://go/android-license-faq 14license { 15 name: "external_rust_crates_virtio-drivers_license", 16 visibility: [":__subpackages__"], 17 license_kinds: [ 18 "SPDX-license-identifier-MIT", 19 ], 20 license_text: [ 21 "LICENSE", 22 ], 23} 24 25rust_library_rlib { 26 name: "libvirtio_drivers", 27 crate_name: "virtio_drivers", 28 cargo_env_compat: true, 29 cargo_pkg_version: "0.7.3", 30 crate_root: "src/lib.rs", 31 edition: "2018", 32 features: ["alloc"], 33 rustlibs: [ 34 "libbitflags", 35 "liblog_rust_nostd", 36 "libzerocopy_nostd", 37 ], 38 apex_available: [ 39 "//apex_available:platform", 40 "//apex_available:anyapex", 41 ], 42 prefer_rlib: true, 43 no_stdlibs: true, 44 stdlibs: [ 45 "libcompiler_builtins.rust_sysroot", 46 "libcore.rust_sysroot", 47 ], 48} 49 50rust_test { 51 name: "virtio-drivers_test_src_lib", 52 crate_name: "virtio_drivers", 53 cargo_env_compat: true, 54 cargo_pkg_version: "0.7.3", 55 crate_root: "src/lib.rs", 56 test_suites: ["general-tests"], 57 auto_gen_config: true, 58 edition: "2018", 59 features: ["alloc"], 60 rustlibs: [ 61 "libbitflags", 62 "liblog_rust", 63 "libzerocopy_nostd", 64 ], 65} 66