blob: 223fd47c378a064bb236c25f0237351841404732 [file] [log] [blame]
Joel Galenson53b1f932021-11-29 14:05:37 -08001// This file is generated by cargo2android.py --config cargo2android.json.
Jakub Koturf167c5f2021-02-05 15:31:07 +01002// Do not modify this file as changes will be overridden on upgrade.
Chih-Hung Hsieh91b2cf42020-04-17 21:14:43 -07003
Bob Badoureedd71f2021-03-17 12:53:21 -07004package {
5 default_applicable_licenses: ["external_rust_crates_thread_local_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_thread_local_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
Jakub Koturf167c5f2021-02-05 15:31:07 +010040rust_library {
Chih-Hung Hsieh91b2cf42020-04-17 21:14:43 -070041 name: "libthread_local",
Jakub Koturf167c5f2021-02-05 15:31:07 +010042 host_supported: true,
Chih-Hung Hsieh91b2cf42020-04-17 21:14:43 -070043 crate_name: "thread_local",
Joel Galenson53b1f932021-11-29 14:05:37 -080044 cargo_env_compat: true,
David LeGaree132f602022-03-02 16:21:17 +000045 cargo_pkg_version: "1.1.4",
Chih-Hung Hsieh91b2cf42020-04-17 21:14:43 -070046 srcs: ["src/lib.rs"],
Haibo Huangc37c85b2021-02-09 18:14:19 -080047 edition: "2018",
Matthew Maurer33c60132020-07-06 13:34:44 -070048 rustlibs: [
Haibo Huangc37c85b2021-02-09 18:14:19 -080049 "libonce_cell",
Chih-Hung Hsieh91b2cf42020-04-17 21:14:43 -070050 ],
51}
52
Jakub Koturf167c5f2021-02-05 15:31:07 +010053rust_test {
Joel Galenson53b1f932021-11-29 14:05:37 -080054 name: "thread_local_test_src_lib",
55 host_supported: true,
56 crate_name: "thread_local",
57 cargo_env_compat: true,
David LeGaree132f602022-03-02 16:21:17 +000058 cargo_pkg_version: "1.1.4",
Joel Galenson53b1f932021-11-29 14:05:37 -080059 srcs: ["src/lib.rs"],
60 test_suites: ["general-tests"],
61 auto_gen_config: true,
62 test_options: {
63 unit_test: true,
64 },
65 edition: "2018",
66 rustlibs: [
67 "libonce_cell",
68 ],
Chih-Hung Hsiehf9dadd42020-07-16 16:27:47 -070069}