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: "disk_test_src_disk", 17 defaults: ["crosvm_inner_defaults"], 18 host_supported: true, 19 crate_name: "disk", 20 cargo_env_compat: true, 21 cargo_pkg_version: "0.1.0", 22 crate_root: "src/disk.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 "android-sparse", 31 "composite-disk", // Added manually 32 "qcow", 33 ], 34 rustlibs: [ 35 "libanyhow", 36 "libbase_rust", 37 "libcfg_if", 38 "libcrc32fast", // Added manually 39 "libcros_async", 40 "libdata_model", 41 "libfutures", 42 "liblibc", 43 "libprotobuf", // Added manually 44 "libprotos", // Added manually 45 "libserde", 46 "libsync_rust", 47 "libtempfile", 48 "libthiserror", 49 "libuuid", // Added manually 50 "libvm_memory", 51 "libzerocopy", 52 ], 53 proc_macros: [ 54 "libasync_trait", 55 "libremain", 56 ], 57} 58 59rust_library { 60 name: "libdisk", 61 defaults: ["crosvm_inner_defaults"], 62 host_supported: true, 63 crate_name: "disk", 64 cargo_env_compat: true, 65 cargo_pkg_version: "0.1.0", 66 crate_root: "src/disk.rs", 67 edition: "2021", 68 features: [ 69 "android-sparse", 70 "composite-disk", // Added manually 71 "qcow", 72 ], 73 rustlibs: [ 74 "libanyhow", 75 "libbase_rust", 76 "libcfg_if", 77 "libcrc32fast", // Added manually 78 "libcros_async", 79 "libdata_model", 80 "libfutures", 81 "liblibc", 82 "libprotobuf", // Added manually 83 "libprotos", // Added manually 84 "libserde", 85 "libsync_rust", 86 "libthiserror", 87 "libuuid", // Added manually 88 "libvm_memory", 89 "libzerocopy", 90 ], 91 proc_macros: [ 92 "libasync_trait", 93 "libremain", 94 ], 95 visibility: [ 96 "//packages/modules/Virtualization/android/virtmgr", 97 "//vendor:__subpackages__", 98 ], 99} 100