blob: e0d1ff8990cf335f9a9094d0e7265032159516b0 [file] [log] [blame]
Joel Galensonbe4e5d72021-04-26 11:37:46 -07001// 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 Stoep766c8d32020-12-21 09:56:33 +01003
Bob Badourb1734502021-02-12 21:32:03 -08004package {
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
10license {
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 Stoep766c8d32020-12-21 09:56:33 +010021rust_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 Stoep28b25f92020-12-23 12:20:18 +010028 apex_available: [
29 "//apex_available:platform",
30 "com.android.resolv",
31 ],
32 min_sdk_version: "29",
Jeff Vander Stoep766c8d32020-12-21 09:56:33 +010033}
34
35rust_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
45rust_test_host {
46 name: "matches_host_test_lib",
47 defaults: ["matches_defaults"],
Jeff Vander Stoep6de71ad2021-01-15 14:18:27 +010048 test_options: {
49 unit_test: true,
50 },
Jeff Vander Stoep766c8d32020-12-21 09:56:33 +010051}
52
53rust_test {
54 name: "matches_device_test_lib",
55 defaults: ["matches_defaults"],
56}
57
58rust_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
71rust_test_host {
72 name: "matches_host_test_tests_macro_use_one",
73 defaults: ["matches_defaults_macro_use_one"],
Jeff Vander Stoep6de71ad2021-01-15 14:18:27 +010074 test_options: {
75 unit_test: true,
76 },
Jeff Vander Stoep766c8d32020-12-21 09:56:33 +010077}
78
79rust_test {
80 name: "matches_device_test_tests_macro_use_one",
81 defaults: ["matches_defaults_macro_use_one"],
82}