• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo_embargo.
2// Do not modify this file after the first "rust_*" or "genrule" module
3// because the changes will be overridden on upgrade.
4// Content before the first "rust_*" or "genrule" module is preserved.
5
6package {
7    default_applicable_licenses: ["external_rust_crates_proc-macro2_license"],
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_proc-macro2_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_library_host {
43    name: "libproc_macro2",
44    crate_name: "proc_macro2",
45    cargo_env_compat: true,
46    cargo_pkg_version: "1.0.69",
47    crate_root: "src/lib.rs",
48    edition: "2021",
49    features: [
50        "default",
51        "proc-macro",
52        "span-locations",
53    ],
54    cfgs: [
55        "proc_macro_span",
56        "span_locations",
57        "wrap_proc_macro",
58    ],
59    rustlibs: ["libunicode_ident"],
60    compile_multilib: "first",
61}
62
63rust_test_host {
64    name: "proc-macro2_test_tests_comments",
65    crate_name: "comments",
66    cargo_env_compat: true,
67    cargo_pkg_version: "1.0.69",
68    crate_root: "tests/comments.rs",
69    test_suites: ["general-tests"],
70    auto_gen_config: true,
71    test_options: {
72        unit_test: true,
73    },
74    edition: "2021",
75    features: [
76        "default",
77        "proc-macro",
78        "span-locations",
79    ],
80    cfgs: [
81        "proc_macro_span",
82        "span_locations",
83        "wrap_proc_macro",
84    ],
85    rustlibs: [
86        "libproc_macro2",
87        "libquote",
88        "libunicode_ident",
89    ],
90    proc_macros: ["librustversion"],
91}
92
93rust_test_host {
94    name: "proc-macro2_test_tests_features",
95    crate_name: "features",
96    cargo_env_compat: true,
97    cargo_pkg_version: "1.0.69",
98    crate_root: "tests/features.rs",
99    test_suites: ["general-tests"],
100    auto_gen_config: true,
101    test_options: {
102        unit_test: true,
103    },
104    edition: "2021",
105    features: [
106        "default",
107        "proc-macro",
108        "span-locations",
109    ],
110    cfgs: [
111        "proc_macro_span",
112        "span_locations",
113        "wrap_proc_macro",
114    ],
115    rustlibs: [
116        "libproc_macro2",
117        "libquote",
118        "libunicode_ident",
119    ],
120    proc_macros: ["librustversion"],
121}
122
123rust_test_host {
124    name: "proc-macro2_test_tests_marker",
125    crate_name: "marker",
126    cargo_env_compat: true,
127    cargo_pkg_version: "1.0.69",
128    crate_root: "tests/marker.rs",
129    test_suites: ["general-tests"],
130    auto_gen_config: true,
131    test_options: {
132        unit_test: true,
133    },
134    edition: "2021",
135    features: [
136        "default",
137        "proc-macro",
138        "span-locations",
139    ],
140    cfgs: [
141        "proc_macro_span",
142        "span_locations",
143        "wrap_proc_macro",
144    ],
145    rustlibs: [
146        "libproc_macro2",
147        "libquote",
148        "libunicode_ident",
149    ],
150    proc_macros: ["librustversion"],
151}
152
153rust_test_host {
154    name: "proc-macro2_test_tests_test",
155    crate_name: "test",
156    cargo_env_compat: true,
157    cargo_pkg_version: "1.0.69",
158    crate_root: "tests/test.rs",
159    test_suites: ["general-tests"],
160    auto_gen_config: true,
161    test_options: {
162        unit_test: true,
163    },
164    edition: "2021",
165    features: [
166        "default",
167        "proc-macro",
168        "span-locations",
169    ],
170    cfgs: [
171        "proc_macro_span",
172        "span_locations",
173        "wrap_proc_macro",
174    ],
175    rustlibs: [
176        "libproc_macro2",
177        "libquote",
178        "libunicode_ident",
179    ],
180    proc_macros: ["librustversion"],
181}
182
183rust_test_host {
184    name: "proc-macro2_test_tests_test_fmt",
185    crate_name: "test_fmt",
186    cargo_env_compat: true,
187    cargo_pkg_version: "1.0.69",
188    crate_root: "tests/test_fmt.rs",
189    test_suites: ["general-tests"],
190    auto_gen_config: true,
191    test_options: {
192        unit_test: true,
193    },
194    edition: "2021",
195    features: [
196        "default",
197        "proc-macro",
198        "span-locations",
199    ],
200    cfgs: [
201        "proc_macro_span",
202        "span_locations",
203        "wrap_proc_macro",
204    ],
205    rustlibs: [
206        "libproc_macro2",
207        "libquote",
208        "libunicode_ident",
209    ],
210    proc_macros: ["librustversion"],
211}
212
213rust_test_host {
214    name: "proc-macro2_test_tests_test_size",
215    crate_name: "test_size",
216    cargo_env_compat: true,
217    cargo_pkg_version: "1.0.69",
218    crate_root: "tests/test_size.rs",
219    test_suites: ["general-tests"],
220    auto_gen_config: true,
221    test_options: {
222        unit_test: true,
223    },
224    edition: "2021",
225    features: [
226        "default",
227        "proc-macro",
228        "span-locations",
229    ],
230    cfgs: [
231        "proc_macro_span",
232        "span_locations",
233        "wrap_proc_macro",
234    ],
235    rustlibs: [
236        "libproc_macro2",
237        "libquote",
238        "libunicode_ident",
239    ],
240    proc_macros: ["librustversion"],
241}
242