• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo2android.py --config cargo2android.json.
2// Do not modify this file as changes will be overridden on upgrade.
3
4package {
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
21rust_library {
22    name: "libmatches",
23    // has rustc warnings
24    host_supported: true,
25    crate_name: "matches",
26    cargo_env_compat: true,
27    cargo_pkg_version: "0.1.9",
28    srcs: ["lib.rs"],
29    edition: "2015",
30    apex_available: [
31        "//apex_available:platform",
32        "com.android.resolv",
33    ],
34    min_sdk_version: "29",
35}
36
37rust_test {
38    name: "matches_test_lib",
39    // has rustc warnings
40    host_supported: true,
41    crate_name: "matches",
42    cargo_env_compat: true,
43    cargo_pkg_version: "0.1.9",
44    srcs: ["lib.rs"],
45    test_suites: ["general-tests"],
46    auto_gen_config: true,
47    test_options: {
48        unit_test: true,
49    },
50    edition: "2015",
51}
52
53rust_defaults {
54    name: "matches_test_defaults",
55    crate_name: "matches",
56    cargo_env_compat: true,
57    cargo_pkg_version: "0.1.9",
58    test_suites: ["general-tests"],
59    auto_gen_config: true,
60    edition: "2015",
61    rustlibs: [
62        "libmatches",
63    ],
64}
65
66rust_test {
67    name: "matches_test_tests_macro_use_one",
68    defaults: ["matches_test_defaults"],
69    // has rustc warnings
70    host_supported: true,
71    srcs: ["tests/macro_use_one.rs"],
72    test_options: {
73        unit_test: true,
74    },
75}
76
77rust_test {
78    name: "matches_test_tests_use_star",
79    defaults: ["matches_test_defaults"],
80    // has rustc warnings
81    host_supported: true,
82    srcs: ["tests/use_star.rs"],
83    test_options: {
84        unit_test: true,
85    },
86}
87