Chih-Hung Hsieh | 45fef2c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --run --dependencies --tests. |
Chih-Hung Hsieh | 048fc04 | 2020-04-16 10:44:22 -0700 | [diff] [blame] | 2 | |
Bob Badour | 2452303 | 2021-02-03 23:43:29 -0800 | [diff] [blame] | 3 | package { |
| 4 | default_applicable_licenses: ["external_rust_crates_regex-syntax_license"], |
| 5 | } |
| 6 | |
| 7 | // Added automatically by a large-scale-change that took the approach of |
| 8 | // 'apply every license found to every target'. While this makes sure we respect |
| 9 | // every license restriction, it may not be entirely correct. |
| 10 | // |
| 11 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 12 | // |
| 13 | // Please consider splitting the single license below into multiple licenses, |
| 14 | // taking care not to lose any license_kind information, and overriding the |
| 15 | // default license using the 'licenses: [...]' property on targets as needed. |
| 16 | // |
| 17 | // For unused files, consider creating a 'filegroup' with "//visibility:private" |
| 18 | // to attach the license to, and including a comment whether the files may be |
| 19 | // used in the current project. |
| 20 | // |
| 21 | // large-scale-change included anything that looked like it might be a license |
| 22 | // text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. |
| 23 | // |
| 24 | // Please consider removing redundant or irrelevant files from 'license_text:'. |
| 25 | // http://go/android-license-faq |
| 26 | license { |
| 27 | name: "external_rust_crates_regex-syntax_license", |
| 28 | visibility: [":__subpackages__"], |
| 29 | license_kinds: [ |
| 30 | "SPDX-license-identifier-Apache-2.0", |
| 31 | "SPDX-license-identifier-MIT", |
| 32 | "SPDX-license-identifier-Unicode-DFS", |
| 33 | ], |
| 34 | license_text: [ |
| 35 | "LICENSE-APACHE", |
| 36 | "LICENSE-MIT", |
| 37 | ], |
| 38 | } |
| 39 | |
Matthew Maurer | e91e182 | 2020-07-06 13:34:22 -0700 | [diff] [blame] | 40 | rust_library_host { |
Chih-Hung Hsieh | 048fc04 | 2020-04-16 10:44:22 -0700 | [diff] [blame] | 41 | name: "libregex_syntax", |
| 42 | crate_name: "regex_syntax", |
| 43 | srcs: ["src/lib.rs"], |
| 44 | edition: "2015", |
| 45 | features: [ |
| 46 | "default", |
| 47 | "unicode", |
| 48 | "unicode-age", |
| 49 | "unicode-bool", |
| 50 | "unicode-case", |
| 51 | "unicode-gencat", |
| 52 | "unicode-perl", |
| 53 | "unicode-script", |
| 54 | "unicode-segment", |
| 55 | ], |
| 56 | } |
Chih-Hung Hsieh | 45fef2c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 57 | |
| 58 | rust_test_host { |
| 59 | name: "regex-syntax_host_test_src_lib", |
| 60 | crate_name: "regex_syntax", |
| 61 | srcs: ["src/lib.rs"], |
| 62 | test_suites: ["general-tests"], |
| 63 | auto_gen_config: true, |
Haibo Huang | 2ec691d | 2021-01-08 17:06:08 -0800 | [diff] [blame] | 64 | test_options: { |
| 65 | unit_test: true, |
| 66 | }, |
Chih-Hung Hsieh | 45fef2c | 2020-07-16 16:27:50 -0700 | [diff] [blame] | 67 | edition: "2015", |
| 68 | features: [ |
| 69 | "default", |
| 70 | "unicode", |
| 71 | "unicode-age", |
| 72 | "unicode-bool", |
| 73 | "unicode-case", |
| 74 | "unicode-gencat", |
| 75 | "unicode-perl", |
| 76 | "unicode-script", |
| 77 | "unicode-segment", |
| 78 | ], |
| 79 | } |