| Joel Galenson | be4e5d7 | 2021-04-26 11:37:46 -0700 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --config cargo2android.json. |
| 2 | // Do not modify this file as changes will be overridden on upgrade. |
| Jeff Vander Stoep | 766c8d3 | 2020-12-21 09:56:33 +0100 | [diff] [blame] | 3 | |
| Bob Badour | b173450 | 2021-02-12 21:32:03 -0800 | [diff] [blame] | 4 | package { |
| 5 | default_applicable_licenses: ["external_rust_crates_matches_license"], |
| 6 | } |
| 7 | |
| 8 | // Added automatically by a large-scale-change |
| 9 | // See: http://go/android-license-faq |
| 10 | license { |
| 11 | name: "external_rust_crates_matches_license", |
| 12 | visibility: [":__subpackages__"], |
| 13 | license_kinds: [ |
| 14 | "SPDX-license-identifier-MIT", |
| 15 | ], |
| 16 | license_text: [ |
| 17 | "LICENSE", |
| 18 | ], |
| 19 | } |
| 20 | |
| Jeff Vander Stoep | 766c8d3 | 2020-12-21 09:56:33 +0100 | [diff] [blame] | 21 | rust_library { |
| 22 | name: "libmatches", |
| 23 | // has rustc warnings |
| 24 | host_supported: true, |
| 25 | crate_name: "matches", |
| 26 | srcs: ["lib.rs"], |
| 27 | edition: "2015", |
| Jeff Vander Stoep | 28b25f9 | 2020-12-23 12:20:18 +0100 | [diff] [blame] | 28 | apex_available: [ |
| 29 | "//apex_available:platform", |
| 30 | "com.android.resolv", |
| 31 | ], |
| 32 | min_sdk_version: "29", |
| Jeff Vander Stoep | 766c8d3 | 2020-12-21 09:56:33 +0100 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | rust_defaults { |
| 36 | name: "matches_defaults", |
| 37 | crate_name: "matches", |
| 38 | // has rustc warnings |
| 39 | srcs: ["lib.rs"], |
| 40 | test_suites: ["general-tests"], |
| 41 | auto_gen_config: true, |
| 42 | edition: "2015", |
| 43 | } |
| 44 | |
| 45 | rust_test_host { |
| 46 | name: "matches_host_test_lib", |
| 47 | defaults: ["matches_defaults"], |
| Jeff Vander Stoep | 6de71ad | 2021-01-15 14:18:27 +0100 | [diff] [blame] | 48 | test_options: { |
| 49 | unit_test: true, |
| 50 | }, |
| Jeff Vander Stoep | 766c8d3 | 2020-12-21 09:56:33 +0100 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | rust_test { |
| 54 | name: "matches_device_test_lib", |
| 55 | defaults: ["matches_defaults"], |
| 56 | } |
| 57 | |
| 58 | rust_defaults { |
| 59 | name: "matches_defaults_macro_use_one", |
| 60 | crate_name: "macro_use_one", |
| 61 | // has rustc warnings |
| 62 | srcs: ["tests/macro_use_one.rs"], |
| 63 | test_suites: ["general-tests"], |
| 64 | auto_gen_config: true, |
| 65 | edition: "2015", |
| 66 | rustlibs: [ |
| 67 | "libmatches", |
| 68 | ], |
| 69 | } |
| 70 | |
| 71 | rust_test_host { |
| 72 | name: "matches_host_test_tests_macro_use_one", |
| 73 | defaults: ["matches_defaults_macro_use_one"], |
| Jeff Vander Stoep | 6de71ad | 2021-01-15 14:18:27 +0100 | [diff] [blame] | 74 | test_options: { |
| 75 | unit_test: true, |
| 76 | }, |
| Jeff Vander Stoep | 766c8d3 | 2020-12-21 09:56:33 +0100 | [diff] [blame] | 77 | } |
| 78 | |
| 79 | rust_test { |
| 80 | name: "matches_device_test_tests_macro_use_one", |
| 81 | defaults: ["matches_defaults_macro_use_one"], |
| 82 | } |