Joel Galenson | 60887db | 2021-11-29 14:05:50 -0800 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --config cargo2android.json. |
Joel Galenson | 11f9802 | 2021-05-19 17:50:27 -0700 | [diff] [blame] | 2 | // Do not modify this file as changes will be overridden on upgrade. |
Chih-Hung Hsieh | 8f40021 | 2019-10-25 18:17:23 -0700 | [diff] [blame] | 3 | |
Bob Badour | 6cbc99a | 2021-02-12 21:28:43 -0800 | [diff] [blame] | 4 | package { |
| 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 |
| 27 | license { |
| 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 Maurer | 23655eb | 2020-07-06 13:34:52 -0700 | [diff] [blame] | 41 | rust_library { |
Ivan Lozano | 062b4bd | 2019-09-06 09:24:18 -0700 | [diff] [blame] | 42 | name: "libunicode_xid", |
Chih-Hung Hsieh | 1809e3e | 2019-10-06 17:57:30 -0700 | [diff] [blame] | 43 | host_supported: true, |
Ivan Lozano | 062b4bd | 2019-09-06 09:24:18 -0700 | [diff] [blame] | 44 | crate_name: "unicode_xid", |
Joel Galenson | 60887db | 2021-11-29 14:05:50 -0800 | [diff] [blame] | 45 | cargo_env_compat: true, |
| 46 | cargo_pkg_version: "0.2.2", |
Ivan Lozano | 062b4bd | 2019-09-06 09:24:18 -0700 | [diff] [blame] | 47 | srcs: ["src/lib.rs"], |
Chih-Hung Hsieh | 1809e3e | 2019-10-06 17:57:30 -0700 | [diff] [blame] | 48 | edition: "2015", |
Chih-Hung Hsieh | b89665d | 2020-10-30 16:11:02 -0700 | [diff] [blame] | 49 | features: ["default"], |
Ivan Lozano | 062b4bd | 2019-09-06 09:24:18 -0700 | [diff] [blame] | 50 | } |
Chih-Hung Hsieh | 23580d4 | 2019-10-02 18:11:32 -0700 | [diff] [blame] | 51 | |
Joel Galenson | 60887db | 2021-11-29 14:05:50 -0800 | [diff] [blame] | 52 | rust_test { |
| 53 | name: "unicode-xid_test_src_lib", |
| 54 | host_supported: true, |
Chih-Hung Hsieh | 23580d4 | 2019-10-02 18:11:32 -0700 | [diff] [blame] | 55 | crate_name: "unicode_xid", |
Joel Galenson | 60887db | 2021-11-29 14:05:50 -0800 | [diff] [blame] | 56 | cargo_env_compat: true, |
| 57 | cargo_pkg_version: "0.2.2", |
Chih-Hung Hsieh | 5b4aa24 | 2019-11-14 12:20:36 -0800 | [diff] [blame] | 58 | srcs: ["src/lib.rs"], |
Chih-Hung Hsieh | 5b4aa24 | 2019-11-14 12:20:36 -0800 | [diff] [blame] | 59 | test_suites: ["general-tests"], |
| 60 | auto_gen_config: true, |
Joel Galenson | 60887db | 2021-11-29 14:05:50 -0800 | [diff] [blame] | 61 | test_options: { |
| 62 | unit_test: true, |
| 63 | }, |
Chih-Hung Hsieh | 23580d4 | 2019-10-02 18:11:32 -0700 | [diff] [blame] | 64 | edition: "2015", |
Chih-Hung Hsieh | b89665d | 2020-10-30 16:11:02 -0700 | [diff] [blame] | 65 | features: ["default"], |
Joel Galenson | 11f9802 | 2021-05-19 17:50:27 -0700 | [diff] [blame] | 66 | rustlibs: [ |
| 67 | "libcriterion", |
| 68 | ], |
Chih-Hung Hsieh | 23580d4 | 2019-10-02 18:11:32 -0700 | [diff] [blame] | 69 | } |
Chih-Hung Hsieh | 5297cde | 2020-07-12 04:36:59 -0700 | [diff] [blame] | 70 | |
Chih-Hung Hsieh | 5297cde | 2020-07-12 04:36:59 -0700 | [diff] [blame] | 71 | rust_test { |
Joel Galenson | 60887db | 2021-11-29 14:05:50 -0800 | [diff] [blame] | 72 | name: "unicode-xid_test_tests_exhaustive_tests", |
| 73 | host_supported: true, |
Chih-Hung Hsieh | fed503e | 2020-07-20 13:50:26 -0700 | [diff] [blame] | 74 | crate_name: "exhaustive_tests", |
Joel Galenson | 60887db | 2021-11-29 14:05:50 -0800 | [diff] [blame] | 75 | cargo_env_compat: true, |
| 76 | cargo_pkg_version: "0.2.2", |
Chih-Hung Hsieh | fed503e | 2020-07-20 13:50:26 -0700 | [diff] [blame] | 77 | srcs: ["tests/exhaustive_tests.rs"], |
| 78 | test_suites: ["general-tests"], |
| 79 | auto_gen_config: true, |
Joel Galenson | 60887db | 2021-11-29 14:05:50 -0800 | [diff] [blame] | 80 | test_options: { |
| 81 | unit_test: true, |
| 82 | }, |
Chih-Hung Hsieh | fed503e | 2020-07-20 13:50:26 -0700 | [diff] [blame] | 83 | edition: "2015", |
Chih-Hung Hsieh | b89665d | 2020-10-30 16:11:02 -0700 | [diff] [blame] | 84 | features: ["default"], |
Chih-Hung Hsieh | fed503e | 2020-07-20 13:50:26 -0700 | [diff] [blame] | 85 | rustlibs: [ |
Joel Galenson | 11f9802 | 2021-05-19 17:50:27 -0700 | [diff] [blame] | 86 | "libcriterion", |
Chih-Hung Hsieh | fed503e | 2020-07-20 13:50:26 -0700 | [diff] [blame] | 87 | "libunicode_xid", |
| 88 | ], |
| 89 | } |