blob: c6f4848c2e4b2aec60af3d151a500011f317d10c [file] [log] [blame]
Joel Galenson60887db2021-11-29 14:05:50 -08001// This file is generated by cargo2android.py --config cargo2android.json.
Joel Galenson11f98022021-05-19 17:50:27 -07002// Do not modify this file as changes will be overridden on upgrade.
Chih-Hung Hsieh8f400212019-10-25 18:17:23 -07003
Bob Badour6cbc99a2021-02-12 21:28:43 -08004package {
5 default_applicable_licenses: ["external_rust_crates_unicode-xid_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_unicode-xid_license",
29 visibility: [":__subpackages__"],
30 license_kinds: [
31 "SPDX-license-identifier-Apache-2.0",
32 "SPDX-license-identifier-MIT",
33 ],
34 license_text: [
35 "COPYRIGHT",
36 "LICENSE-APACHE",
37 "LICENSE-MIT",
38 ],
39}
40
Matthew Maurer23655eb2020-07-06 13:34:52 -070041rust_library {
Ivan Lozano062b4bd2019-09-06 09:24:18 -070042 name: "libunicode_xid",
Chih-Hung Hsieh1809e3e2019-10-06 17:57:30 -070043 host_supported: true,
Ivan Lozano062b4bd2019-09-06 09:24:18 -070044 crate_name: "unicode_xid",
Joel Galenson60887db2021-11-29 14:05:50 -080045 cargo_env_compat: true,
46 cargo_pkg_version: "0.2.2",
Ivan Lozano062b4bd2019-09-06 09:24:18 -070047 srcs: ["src/lib.rs"],
Chih-Hung Hsieh1809e3e2019-10-06 17:57:30 -070048 edition: "2015",
Chih-Hung Hsiehb89665d2020-10-30 16:11:02 -070049 features: ["default"],
Ivan Lozano062b4bd2019-09-06 09:24:18 -070050}
Chih-Hung Hsieh23580d42019-10-02 18:11:32 -070051
Joel Galenson60887db2021-11-29 14:05:50 -080052rust_test {
53 name: "unicode-xid_test_src_lib",
54 host_supported: true,
Chih-Hung Hsieh23580d42019-10-02 18:11:32 -070055 crate_name: "unicode_xid",
Joel Galenson60887db2021-11-29 14:05:50 -080056 cargo_env_compat: true,
57 cargo_pkg_version: "0.2.2",
Chih-Hung Hsieh5b4aa242019-11-14 12:20:36 -080058 srcs: ["src/lib.rs"],
Chih-Hung Hsieh5b4aa242019-11-14 12:20:36 -080059 test_suites: ["general-tests"],
60 auto_gen_config: true,
Joel Galenson60887db2021-11-29 14:05:50 -080061 test_options: {
62 unit_test: true,
63 },
Chih-Hung Hsieh23580d42019-10-02 18:11:32 -070064 edition: "2015",
Chih-Hung Hsiehb89665d2020-10-30 16:11:02 -070065 features: ["default"],
Joel Galenson11f98022021-05-19 17:50:27 -070066 rustlibs: [
67 "libcriterion",
68 ],
Chih-Hung Hsieh23580d42019-10-02 18:11:32 -070069}
Chih-Hung Hsieh5297cde2020-07-12 04:36:59 -070070
Chih-Hung Hsieh5297cde2020-07-12 04:36:59 -070071rust_test {
Joel Galenson60887db2021-11-29 14:05:50 -080072 name: "unicode-xid_test_tests_exhaustive_tests",
73 host_supported: true,
Chih-Hung Hsiehfed503e2020-07-20 13:50:26 -070074 crate_name: "exhaustive_tests",
Joel Galenson60887db2021-11-29 14:05:50 -080075 cargo_env_compat: true,
76 cargo_pkg_version: "0.2.2",
Chih-Hung Hsiehfed503e2020-07-20 13:50:26 -070077 srcs: ["tests/exhaustive_tests.rs"],
78 test_suites: ["general-tests"],
79 auto_gen_config: true,
Joel Galenson60887db2021-11-29 14:05:50 -080080 test_options: {
81 unit_test: true,
82 },
Chih-Hung Hsiehfed503e2020-07-20 13:50:26 -070083 edition: "2015",
Chih-Hung Hsiehb89665d2020-10-30 16:11:02 -070084 features: ["default"],
Chih-Hung Hsiehfed503e2020-07-20 13:50:26 -070085 rustlibs: [
Joel Galenson11f98022021-05-19 17:50:27 -070086 "libcriterion",
Chih-Hung Hsiehfed503e2020-07-20 13:50:26 -070087 "libunicode_xid",
88 ],
89}