blob: b08c70d5ee7cf2ef85bead678ecb4ab2ce2984d6 [file] [log] [blame]
Joel Galenson34cbfab2021-04-27 09:19:42 -07001// This file is generated by cargo2android.py --config cargo2android.json.
2// Do not modify this file as changes will be overridden on upgrade.
Chih-Hung Hsiehba7afd92020-07-16 16:27:48 -07003
Bob Badour3084a7c2021-02-12 17:33:33 -08004package {
5 default_applicable_licenses: ["external_rust_crates_env_logger_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_env_logger_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 Galenson2516a2e2021-11-29 14:03:35 -080040rust_test {
41 name: "env_logger_test_src_lib",
42 host_supported: true,
Chih-Hung Hsiehba7afd92020-07-16 16:27:48 -070043 crate_name: "env_logger",
Joel Galensonc84b5622021-11-19 15:05:37 -080044 cargo_env_compat: true,
45 cargo_pkg_version: "0.9.0",
Joel Galenson2516a2e2021-11-29 14:03:35 -080046 srcs: ["src/lib.rs"],
Chih-Hung Hsiehba7afd92020-07-16 16:27:48 -070047 test_suites: ["general-tests"],
48 auto_gen_config: true,
Joel Galenson2516a2e2021-11-29 14:03:35 -080049 test_options: {
50 unit_test: true,
51 },
Chih-Hung Hsiehba7afd92020-07-16 16:27:48 -070052 edition: "2018",
53 rustlibs: [
54 "liblog_rust",
55 ],
56}
57
58rust_defaults {
Joel Galenson2516a2e2021-11-29 14:03:35 -080059 name: "env_logger_test_defaults",
Chih-Hung Hsiehba7afd92020-07-16 16:27:48 -070060 crate_name: "env_logger",
Joel Galensonc84b5622021-11-19 15:05:37 -080061 cargo_env_compat: true,
62 cargo_pkg_version: "0.9.0",
Chih-Hung Hsiehba7afd92020-07-16 16:27:48 -070063 test_suites: ["general-tests"],
64 auto_gen_config: true,
65 edition: "2018",
Joel Galenson34cbfab2021-04-27 09:19:42 -070066 cfgs: ["test"],
Chih-Hung Hsiehba7afd92020-07-16 16:27:48 -070067 rustlibs: [
68 "libenv_logger",
69 "liblog_rust",
70 ],
71}
72
Joel Galenson2516a2e2021-11-29 14:03:35 -080073rust_test {
74 name: "env_logger_test_tests_init-twice-retains-filter",
75 defaults: ["env_logger_test_defaults"],
76 host_supported: true,
Chih-Hung Hsiehba7afd92020-07-16 16:27:48 -070077 srcs: ["tests/init-twice-retains-filter.rs"],
Haibo Huang60aab5f2020-11-18 10:30:47 -080078 test_options: {
79 unit_test: true,
80 },
Chih-Hung Hsiehba7afd92020-07-16 16:27:48 -070081}
82
83rust_test {
Joel Galenson2516a2e2021-11-29 14:03:35 -080084 name: "env_logger_test_tests_log-in-log",
85 defaults: ["env_logger_test_defaults"],
86 host_supported: true,
Chih-Hung Hsiehba7afd92020-07-16 16:27:48 -070087 srcs: ["tests/log-in-log.rs"],
Haibo Huang60aab5f2020-11-18 10:30:47 -080088 test_options: {
89 unit_test: true,
90 },
Chih-Hung Hsiehba7afd92020-07-16 16:27:48 -070091}
92
93rust_test {
Joel Galenson2516a2e2021-11-29 14:03:35 -080094 name: "env_logger_test_tests_log_tls_dtors",
95 defaults: ["env_logger_test_defaults"],
96 host_supported: true,
Chih-Hung Hsiehba7afd92020-07-16 16:27:48 -070097 srcs: ["tests/log_tls_dtors.rs"],
Haibo Huang60aab5f2020-11-18 10:30:47 -080098 test_options: {
99 unit_test: true,
100 },
Chih-Hung Hsiehba7afd92020-07-16 16:27:48 -0700101}
102
103rust_test {
Joel Galenson2516a2e2021-11-29 14:03:35 -0800104 name: "env_logger_test_tests_regexp_filter",
105 defaults: ["env_logger_test_defaults"],
106 host_supported: true,
Joel Galenson0a515762020-07-29 14:08:44 -0700107 srcs: ["tests/regexp_filter.rs"],
Haibo Huang60aab5f2020-11-18 10:30:47 -0800108 test_options: {
109 unit_test: true,
110 },
Joel Galenson0a515762020-07-29 14:08:44 -0700111}
112
Joel Galenson2472c972020-07-06 11:47:35 -0700113rust_library {
Joel Galenson1ddb96c2020-06-30 12:51:50 -0700114 name: "libenv_logger",
Joel Galenson0a515762020-07-29 14:08:44 -0700115 host_supported: true,
Joel Galenson1ddb96c2020-06-30 12:51:50 -0700116 crate_name: "env_logger",
Joel Galensonc84b5622021-11-19 15:05:37 -0800117 cargo_env_compat: true,
118 cargo_pkg_version: "0.9.0",
Joel Galenson1ddb96c2020-06-30 12:51:50 -0700119 srcs: ["src/lib.rs"],
120 edition: "2018",
Joel Galenson2472c972020-07-06 11:47:35 -0700121 rustlibs: [
Joel Galenson1ddb96c2020-06-30 12:51:50 -0700122 "liblog_rust",
123 ],
Jiyong Park69c51892021-02-16 13:25:26 +0900124 apex_available: [
125 "//apex_available:platform",
Roopa Sattiraju524031d2021-12-21 15:27:34 -0800126 "com.android.bluetooth",
Victor Hsiehb3cc4f72021-05-11 12:36:08 -0700127 "com.android.compos",
Luke Huang0a145202021-05-12 15:32:38 +0800128 "com.android.resolv",
Joel Galensonc84b5622021-11-19 15:05:37 -0800129 "com.android.uwb",
Jiyong Park69c51892021-02-16 13:25:26 +0900130 "com.android.virt",
131 ],
Joel Galensonc84b5622021-11-19 15:05:37 -0800132 vendor_available: true,
Luke Huang0a145202021-05-12 15:32:38 +0800133 min_sdk_version: "29",
Joel Galenson1ddb96c2020-06-30 12:51:50 -0700134}