• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: [
6        "external_rust_crates_android_logger_license",
7    ],
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_android_logger_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: "android_logger_device_test_src_lib",
44    crate_name: "android_logger",
45    srcs: ["src/lib.rs"],
46    test_suites: ["general-tests"],
47    auto_gen_config: true,
48    edition: "2015",
49    features: [
50        "default",
51        "regex",
52    ],
53    rustlibs: [
54        "libandroid_log_sys",
55        "libenv_logger",
56        "liblazy_static",
57        "liblog_rust",
58    ],
59}
60
61rust_defaults {
62    name: "android_logger_defaults",
63    crate_name: "android_logger",
64    test_suites: ["general-tests"],
65    auto_gen_config: true,
66    edition: "2015",
67    features: [
68        "default",
69        "regex",
70    ],
71    rustlibs: [
72        "libandroid_log_sys",
73        "libandroid_logger",
74        "libenv_logger",
75        "liblazy_static",
76        "liblog_rust",
77    ],
78}
79
80rust_test {
81    name: "android_logger_device_test_tests_config_log_level",
82    defaults: ["android_logger_defaults"],
83    srcs: ["tests/config_log_level.rs"],
84}
85
86rust_test {
87    name: "android_logger_device_test_tests_default_init",
88    defaults: ["android_logger_defaults"],
89    srcs: ["tests/default_init.rs"],
90}
91
92rust_test {
93    name: "android_logger_device_test_tests_multiple_init",
94    defaults: ["android_logger_defaults"],
95    srcs: ["tests/multiple_init.rs"],
96}
97
98rust_library {
99    name: "libandroid_logger",
100    crate_name: "android_logger",
101    srcs: ["src/lib.rs"],
102    edition: "2015",
103    features: [
104        "default",
105        "regex",
106    ],
107    rustlibs: [
108        "libandroid_log_sys",
109        "libenv_logger",
110        "liblazy_static",
111        "liblog_rust",
112    ],
113    apex_available: [
114        "//apex_available:platform",
115        "com.android.resolv",
116        "com.android.virt",
117    ],
118    min_sdk_version: "29",
119}
120
121// dependent_library ["feature_list"]
122//   aho-corasick-0.7.15 "default,std"
123//   android_log-sys-0.2.0
124//   cfg-if-1.0.0
125//   env_logger-0.8.3 "regex"
126//   lazy_static-1.4.0
127//   log-0.4.14 "std"
128//   memchr-2.3.4 "default,std,use_std"
129//   regex-1.4.6 "aho-corasick,memchr,perf,perf-cache,perf-dfa,perf-inline,perf-literal,std"
130//   regex-syntax-0.6.23
131