• 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_test_src_lib",
44    crate_name: "android_logger",
45    cargo_env_compat: true,
46    cargo_pkg_version: "0.12.0",
47    srcs: ["src/lib.rs"],
48    test_suites: ["general-tests"],
49    auto_gen_config: true,
50    edition: "2015",
51    features: [
52        "default",
53        "regex",
54    ],
55    rustlibs: [
56        "libandroid_log_sys",
57        "libenv_logger",
58        "liblog_rust",
59        "libonce_cell",
60    ],
61}
62
63rust_defaults {
64    name: "android_logger_test_defaults",
65    crate_name: "android_logger",
66    cargo_env_compat: true,
67    cargo_pkg_version: "0.12.0",
68    test_suites: ["general-tests"],
69    auto_gen_config: true,
70    edition: "2015",
71    features: [
72        "default",
73        "regex",
74    ],
75    rustlibs: [
76        "libandroid_log_sys",
77        "libandroid_logger",
78        "libenv_logger",
79        "liblog_rust",
80        "libonce_cell",
81    ],
82}
83
84rust_test {
85    name: "android_logger_test_tests_config_log_level",
86    defaults: ["android_logger_test_defaults"],
87    srcs: ["tests/config_log_level.rs"],
88}
89
90rust_test {
91    name: "android_logger_test_tests_default_init",
92    defaults: ["android_logger_test_defaults"],
93    srcs: ["tests/default_init.rs"],
94}
95
96rust_test {
97    name: "android_logger_test_tests_multiple_init",
98    defaults: ["android_logger_test_defaults"],
99    srcs: ["tests/multiple_init.rs"],
100}
101
102rust_library {
103    name: "libandroid_logger",
104    crate_name: "android_logger",
105    cargo_env_compat: true,
106    cargo_pkg_version: "0.12.0",
107    srcs: ["src/lib.rs"],
108    edition: "2015",
109    features: [
110        "default",
111        "regex",
112    ],
113    rustlibs: [
114        "libandroid_log_sys",
115        "libenv_logger",
116        "liblog_rust",
117        "libonce_cell",
118    ],
119    apex_available: [
120        "//apex_available:platform",
121        "//apex_available:anyapex",
122    ],
123    product_available: true,
124    vendor_available: true,
125    min_sdk_version: "29",
126}
127