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