blob: 616fb7b3a04fba052cb604fec0a03bb26ea33784 [file] [log] [blame]
Andrew Walbranea764782021-06-14 15:36:42 +00001// This file is generated by cargo2android.py --config cargo2android.json.
2// Do not modify this file as changes will be overridden on upgrade.
Yi Kong9f04d262021-02-13 04:00:15 +08003
Bob Badoure20de9d2021-03-01 00:21:09 -08004package {
5 default_applicable_licenses: ["external_rust_crates_crc32fast_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_crc32fast_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
Joel Galenson07a96af2021-11-29 14:03:22 -080040rust_test {
41 name: "crc32fast_test_src_lib",
42 host_supported: true,
Jeff Vander Stoep8eac4622021-10-27 12:53:43 +020043 crate_name: "crc32fast",
Jeff Vander Stoep8eac4622021-10-27 12:53:43 +020044 cargo_env_compat: true,
David LeGare80f44b12022-03-01 18:57:49 +000045 cargo_pkg_version: "1.3.2",
Joel Galenson07a96af2021-11-29 14:03:22 -080046 srcs: ["src/lib.rs"],
Jeff Vander Stoep8eac4622021-10-27 12:53:43 +020047 test_suites: ["general-tests"],
48 auto_gen_config: true,
Joel Galenson07a96af2021-11-29 14:03:22 -080049 test_options: {
50 unit_test: true,
51 },
Jeff Vander Stoep8eac4622021-10-27 12:53:43 +020052 edition: "2015",
53 features: [
54 "default",
55 "std",
56 ],
57 cfgs: ["crc32fast_stdarchx86"],
58 rustlibs: [
59 "libbencher",
60 "libcfg_if",
61 "libquickcheck",
62 "librand",
63 ],
64}
65
Yi Kong9f04d262021-02-13 04:00:15 +080066rust_library {
67 name: "libcrc32fast",
68 host_supported: true,
69 crate_name: "crc32fast",
Jeff Vander Stoep8eac4622021-10-27 12:53:43 +020070 cargo_env_compat: true,
David LeGare80f44b12022-03-01 18:57:49 +000071 cargo_pkg_version: "1.3.2",
Yi Kong9f04d262021-02-13 04:00:15 +080072 srcs: ["src/lib.rs"],
73 edition: "2015",
74 features: [
75 "default",
76 "std",
77 ],
Andrew Walbranea764782021-06-14 15:36:42 +000078 cfgs: ["crc32fast_stdarchx86"],
Yi Kong9f04d262021-02-13 04:00:15 +080079 rustlibs: [
80 "libcfg_if",
81 ],
Andrew Walbranea764782021-06-14 15:36:42 +000082 apex_available: [
83 "//apex_available:platform",
84 "com.android.virt",
85 ],
Yi Kong9f04d262021-02-13 04:00:15 +080086}