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 default_applicable_licenses: ["external_rust_crates_flate2_license"], 6} 7 8// Added automatically by a large-scale-change that took the approach of 9// 'apply every license found to every target'. While this makes sure we respect 10// every license restriction, it may not be entirely correct. 11// 12// e.g. GPL in an MIT project might only apply to the contrib/ directory. 13// 14// Please consider splitting the single license below into multiple licenses, 15// taking care not to lose any license_kind information, and overriding the 16// default license using the 'licenses: [...]' property on targets as needed. 17// 18// For unused files, consider creating a 'fileGroup' with "//visibility:private" 19// to attach the license to, and including a comment whether the files may be 20// used in the current project. 21// 22// large-scale-change included anything that looked like it might be a license 23// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. 24// 25// Please consider removing redundant or irrelevant files from 'license_text:'. 26// See: http://go/android-license-faq 27license { 28 name: "external_rust_crates_flate2_license", 29 visibility: [":__subpackages__"], 30 license_kinds: [ 31 "SPDX-license-identifier-Apache-2.0", 32 "SPDX-license-identifier-MIT", 33 ], 34 license_text: [ 35 "LICENSE-APACHE", 36 "LICENSE-MIT", 37 ], 38} 39 40rust_test { 41 name: "flate2_test_src_lib", 42 crate_name: "flate2", 43 cargo_env_compat: true, 44 cargo_pkg_version: "1.0.25", 45 srcs: ["src/lib.rs"], 46 test_suites: ["general-tests"], 47 auto_gen_config: true, 48 test_options: { 49 unit_test: true, 50 }, 51 edition: "2018", 52 features: [ 53 "any_zlib", 54 "libz-sys", 55 "zlib", 56 ], 57 rustlibs: [ 58 "libcrc32fast", 59 "liblibz_sys", 60 "libquickcheck", 61 "librand", 62 ], 63} 64 65rust_defaults { 66 name: "flate2_test_defaults", 67 crate_name: "flate2", 68 cargo_env_compat: true, 69 cargo_pkg_version: "1.0.25", 70 test_suites: ["general-tests"], 71 auto_gen_config: true, 72 edition: "2018", 73 features: [ 74 "any_zlib", 75 "libz-sys", 76 "zlib", 77 ], 78 rustlibs: [ 79 "libcrc32fast", 80 "libflate2", 81 "liblibz_sys", 82 "libquickcheck", 83 "librand", 84 ], 85} 86 87rust_test { 88 name: "flate2_test_tests_early-flush", 89 defaults: ["flate2_test_defaults"], 90 srcs: ["tests/early-flush.rs"], 91 test_options: { 92 unit_test: true, 93 }, 94} 95 96rust_test { 97 name: "flate2_test_tests_empty-read", 98 defaults: ["flate2_test_defaults"], 99 srcs: ["tests/empty-read.rs"], 100 test_options: { 101 unit_test: true, 102 }, 103} 104 105rust_test { 106 name: "flate2_test_tests_gunzip", 107 defaults: ["flate2_test_defaults"], 108 srcs: ["tests/gunzip.rs"], 109 test_options: { 110 unit_test: true, 111 }, 112 data: [ 113 "tests/corrupt-gz-file.bin", 114 "tests/good-file.gz", 115 "tests/good-file.txt", 116 "tests/multi.gz", 117 "tests/multi.txt", 118 ], 119} 120 121rust_test { 122 name: "flate2_test_tests_zero-write", 123 defaults: ["flate2_test_defaults"], 124 srcs: ["tests/zero-write.rs"], 125 test_options: { 126 unit_test: true, 127 }, 128} 129 130rust_library { 131 name: "libflate2", 132 host_supported: true, 133 crate_name: "flate2", 134 cargo_env_compat: true, 135 cargo_pkg_version: "1.0.25", 136 srcs: ["src/lib.rs"], 137 edition: "2018", 138 features: [ 139 "any_zlib", 140 "libz-sys", 141 "zlib", 142 ], 143 rustlibs: [ 144 "libcrc32fast", 145 "liblibz_sys", 146 ], 147 apex_available: [ 148 "//apex_available:platform", 149 "com.android.virt", 150 ], 151 product_available: true, 152 vendor_available: true, 153} 154