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