1// This file is generated by cargo2android.py --config cargo2android.json. 2// Do not modify this file as changes will be overridden on upgrade. 3 4package { 5 // See: http://go/android-license-faq 6 // A large-scale-change added 'default_applicable_licenses' to import 7 // all of the 'license_kinds' from "external_crosvm_license" 8 // to get the below license kinds: 9 // SPDX-license-identifier-BSD 10 default_applicable_licenses: ["external_crosvm_license"], 11} 12 13rust_test { 14 name: "disk_test_src_disk", 15 defaults: ["crosvm_defaults"], 16 host_supported: true, 17 crate_name: "disk", 18 cargo_env_compat: true, 19 cargo_pkg_version: "0.1.0", 20 srcs: ["src/disk.rs"], 21 test_suites: ["general-tests"], 22 auto_gen_config: true, 23 test_options: { 24 unit_test: true, 25 }, 26 edition: "2021", 27 rustlibs: [ 28 "libbase_rust", 29 "libcros_async", 30 "libdata_model", 31 "libfutures", 32 "liblibc", 33 "libtempfile", 34 "libthiserror", 35 "libvm_memory", 36 ], 37 proc_macros: [ 38 "libasync_trait", 39 "libremain", 40 ], 41} 42 43rust_library { 44 name: "libdisk", 45 defaults: ["crosvm_defaults"], 46 host_supported: true, 47 crate_name: "disk", 48 cargo_env_compat: true, 49 cargo_pkg_version: "0.1.0", 50 srcs: ["src/disk.rs"], 51 edition: "2021", 52 features: [ 53 "composite-disk", // Added manually 54 ], 55 rustlibs: [ 56 "libbase_rust", 57 "libcrc32fast", // Added manually 58 "libcros_async", 59 "libdata_model", 60 "libfutures", 61 "liblibc", 62 "libprotobuf", // Added manually 63 "libprotos", // Added manually 64 "libtempfile", 65 "libthiserror", 66 "libuuid", // Added manually 67 "libvm_memory", 68 ], 69 proc_macros: [ 70 "libasync_trait", 71 "libremain", 72 ], 73} 74