// This file is generated by cargo2android.py --config cargo2android.json. // Do not modify this file as changes will be overridden on upgrade. package { default_applicable_licenses: ["external_rust_crates_matches_license"], } // Added automatically by a large-scale-change // See: http://go/android-license-faq license { name: "external_rust_crates_matches_license", visibility: [":__subpackages__"], license_kinds: [ "SPDX-license-identifier-MIT", ], license_text: [ "LICENSE", ], } rust_library { name: "libmatches", // has rustc warnings host_supported: true, crate_name: "matches", cargo_env_compat: true, cargo_pkg_version: "0.1.9", srcs: ["lib.rs"], edition: "2015", apex_available: [ "//apex_available:platform", "com.android.resolv", ], min_sdk_version: "29", } rust_test { name: "matches_test_lib", // has rustc warnings host_supported: true, crate_name: "matches", cargo_env_compat: true, cargo_pkg_version: "0.1.9", srcs: ["lib.rs"], test_suites: ["general-tests"], auto_gen_config: true, test_options: { unit_test: true, }, edition: "2015", } rust_defaults { name: "matches_test_defaults", crate_name: "matches", cargo_env_compat: true, cargo_pkg_version: "0.1.9", test_suites: ["general-tests"], auto_gen_config: true, edition: "2015", rustlibs: [ "libmatches", ], } rust_test { name: "matches_test_tests_macro_use_one", defaults: ["matches_test_defaults"], // has rustc warnings host_supported: true, srcs: ["tests/macro_use_one.rs"], test_options: { unit_test: true, }, } rust_test { name: "matches_test_tests_use_star", defaults: ["matches_test_defaults"], // has rustc warnings host_supported: true, srcs: ["tests/use_star.rs"], test_options: { unit_test: true, }, }