blob: edcebb2766f97218eccc80a1f2e7c96d443bc17e [file] [log] [blame]
Chih-Hung Hsieh5c3aa062020-10-01 16:52:21 -07001// This file is generated by cargo2android.py --run --tests --dependencies.
Matthew Maurerdd4ec242020-06-10 13:34:08 -07002
Bob Badourf5ca20a2021-02-03 23:41:13 -08003package {
4 default_applicable_licenses: [
5 "external_rust_crates_structopt-derive_license",
6 ],
7}
8
9// Added automatically by a large-scale-change that took the approach of
10// 'apply every license found to every target'. While this makes sure we respect
11// every license restriction, it may not be entirely correct.
12//
13// e.g. GPL in an MIT project might only apply to the contrib/ directory.
14//
15// Please consider splitting the single license below into multiple licenses,
16// taking care not to lose any license_kind information, and overriding the
17// default license using the 'licenses: [...]' property on targets as needed.
18//
19// For unused files, consider creating a 'filegroup' with "//visibility:private"
20// to attach the license to, and including a comment whether the files may be
21// used in the current project.
22//
23// large-scale-change included anything that looked like it might be a license
24// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
25//
26// Please consider removing redundant or irrelevant files from 'license_text:'.
27// http://go/android-license-faq
28license {
29 name: "external_rust_crates_structopt-derive_license",
30 visibility: [":__subpackages__"],
31 license_kinds: [
32 "SPDX-license-identifier-Apache-2.0",
33 "SPDX-license-identifier-MIT",
34 ],
35 license_text: [
36 "LICENSE-APACHE",
37 "LICENSE-MIT",
38 ],
39}
40
Matthew Maurerdd4ec242020-06-10 13:34:08 -070041rust_proc_macro {
42 name: "libstructopt_derive",
43 crate_name: "structopt_derive",
44 srcs: ["src/lib.rs"],
45 edition: "2018",
46 rustlibs: [
47 "libheck",
48 "libproc_macro2",
49 "libproc_macro_error",
50 "libquote",
51 "libsyn",
52 ],
53}
54
55rust_test_host {
56 name: "structopt-derive_host_test_src_lib",
57 crate_name: "structopt_derive",
58 srcs: ["src/lib.rs"],
59 test_suites: ["general-tests"],
60 auto_gen_config: true,
61 edition: "2018",
62 rustlibs: [
63 "libheck",
64 "libproc_macro2",
65 "libproc_macro_error",
66 "libquote",
67 "libsyn",
68 ],
69}
70
71// dependent_library ["feature_list"]
72// heck-0.3.1
Chih-Hung Hsieh5c3aa062020-10-01 16:52:21 -070073// proc-macro-error-1.0.4 "default,syn,syn-error"
74// proc-macro-error-attr-1.0.4
75// proc-macro2-1.0.24 "default,proc-macro"
Matthew Maurerdd4ec242020-06-10 13:34:08 -070076// quote-1.0.7 "default,proc-macro"
Haibo Huang70c1ca62020-11-30 18:20:15 -080077// syn-1.0.53 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote"
78// unicode-segmentation-1.7.1
Matthew Maurerdd4ec242020-06-10 13:34:08 -070079// unicode-xid-0.2.1 "default"
80// version_check-0.9.2