Migrate 25 crates to monorepo. am: 36a2876001
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/regex/+/3248573
Change-Id: I1491f45cb4fe94c67be76c18b9d424d6999ec3ff
Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/Android.bp b/Android.bp
index ad91adc..96beb97 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,482 +1 @@
-// This file is generated by cargo_embargo.
-// Do not modify this file because the changes will be overridden on upgrade.
-
-package {
- default_applicable_licenses: ["external_rust_crates_regex_license"],
-}
-
-license {
- name: "external_rust_crates_regex_license",
- visibility: [":__subpackages__"],
- license_kinds: ["SPDX-license-identifier-Apache-2.0"],
- license_text: ["LICENSE"],
-}
-
-rust_library {
- name: "libregex",
- host_supported: true,
- crate_name: "regex",
- cargo_env_compat: true,
- cargo_pkg_version: "1.7.3",
- crate_root: "src/lib.rs",
- edition: "2018",
- features: [
- "aho-corasick",
- "default",
- "memchr",
- "perf",
- "perf-cache",
- "perf-dfa",
- "perf-inline",
- "perf-literal",
- "std",
- "unicode",
- "unicode-age",
- "unicode-bool",
- "unicode-case",
- "unicode-gencat",
- "unicode-perl",
- "unicode-script",
- "unicode-segment",
- ],
- rustlibs: [
- "libaho_corasick",
- "libmemchr",
- "libregex_syntax",
- ],
- apex_available: [
- "//apex_available:anyapex",
- "//apex_available:platform",
- ],
- product_available: true,
- vendor_available: true,
-}
-
-rust_test {
- name: "regex_test_src_lib",
- host_supported: true,
- crate_name: "regex",
- cargo_env_compat: true,
- cargo_pkg_version: "1.7.3",
- crate_root: "src/lib.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "aho-corasick",
- "default",
- "memchr",
- "perf",
- "perf-cache",
- "perf-dfa",
- "perf-inline",
- "perf-literal",
- "std",
- "unicode",
- "unicode-age",
- "unicode-bool",
- "unicode-case",
- "unicode-gencat",
- "unicode-perl",
- "unicode-script",
- "unicode-segment",
- ],
- rustlibs: [
- "libaho_corasick",
- "liblazy_static",
- "libmemchr",
- "libquickcheck",
- "librand",
- "libregex_syntax",
- ],
-}
-
-rust_test {
- name: "regex_test_tests_test_backtrack",
- host_supported: true,
- crate_name: "backtrack",
- cargo_env_compat: true,
- cargo_pkg_version: "1.7.3",
- crate_root: "tests/test_backtrack.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "aho-corasick",
- "default",
- "memchr",
- "perf",
- "perf-cache",
- "perf-dfa",
- "perf-inline",
- "perf-literal",
- "std",
- "unicode",
- "unicode-age",
- "unicode-bool",
- "unicode-case",
- "unicode-gencat",
- "unicode-perl",
- "unicode-script",
- "unicode-segment",
- ],
- rustlibs: [
- "libaho_corasick",
- "liblazy_static",
- "libmemchr",
- "libquickcheck",
- "librand",
- "libregex",
- "libregex_syntax",
- ],
-}
-
-rust_test {
- name: "regex_test_tests_test_backtrack_bytes",
- host_supported: true,
- crate_name: "backtrack_bytes",
- cargo_env_compat: true,
- cargo_pkg_version: "1.7.3",
- crate_root: "tests/test_backtrack_bytes.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "aho-corasick",
- "default",
- "memchr",
- "perf",
- "perf-cache",
- "perf-dfa",
- "perf-inline",
- "perf-literal",
- "std",
- "unicode",
- "unicode-age",
- "unicode-bool",
- "unicode-case",
- "unicode-gencat",
- "unicode-perl",
- "unicode-script",
- "unicode-segment",
- ],
- rustlibs: [
- "libaho_corasick",
- "liblazy_static",
- "libmemchr",
- "libquickcheck",
- "librand",
- "libregex",
- "libregex_syntax",
- ],
-}
-
-rust_test {
- name: "regex_test_tests_test_backtrack_utf8bytes",
- host_supported: true,
- crate_name: "backtrack_utf8bytes",
- cargo_env_compat: true,
- cargo_pkg_version: "1.7.3",
- crate_root: "tests/test_backtrack_utf8bytes.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "aho-corasick",
- "default",
- "memchr",
- "perf",
- "perf-cache",
- "perf-dfa",
- "perf-inline",
- "perf-literal",
- "std",
- "unicode",
- "unicode-age",
- "unicode-bool",
- "unicode-case",
- "unicode-gencat",
- "unicode-perl",
- "unicode-script",
- "unicode-segment",
- ],
- rustlibs: [
- "libaho_corasick",
- "liblazy_static",
- "libmemchr",
- "libquickcheck",
- "librand",
- "libregex",
- "libregex_syntax",
- ],
-}
-
-rust_test {
- name: "regex_test_tests_test_crates_regex",
- host_supported: true,
- crate_name: "crates_regex",
- cargo_env_compat: true,
- cargo_pkg_version: "1.7.3",
- crate_root: "tests/test_crates_regex.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "aho-corasick",
- "default",
- "memchr",
- "perf",
- "perf-cache",
- "perf-dfa",
- "perf-inline",
- "perf-literal",
- "std",
- "unicode",
- "unicode-age",
- "unicode-bool",
- "unicode-case",
- "unicode-gencat",
- "unicode-perl",
- "unicode-script",
- "unicode-segment",
- ],
- rustlibs: [
- "libaho_corasick",
- "liblazy_static",
- "libmemchr",
- "libquickcheck",
- "librand",
- "libregex",
- "libregex_syntax",
- ],
-}
-
-rust_test {
- name: "regex_test_tests_test_default",
- host_supported: true,
- crate_name: "default",
- cargo_env_compat: true,
- cargo_pkg_version: "1.7.3",
- crate_root: "tests/test_default.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "aho-corasick",
- "default",
- "memchr",
- "perf",
- "perf-cache",
- "perf-dfa",
- "perf-inline",
- "perf-literal",
- "std",
- "unicode",
- "unicode-age",
- "unicode-bool",
- "unicode-case",
- "unicode-gencat",
- "unicode-perl",
- "unicode-script",
- "unicode-segment",
- ],
- rustlibs: [
- "libaho_corasick",
- "liblazy_static",
- "libmemchr",
- "libquickcheck",
- "librand",
- "libregex",
- "libregex_syntax",
- ],
-}
-
-rust_test {
- name: "regex_test_tests_test_default_bytes",
- host_supported: true,
- crate_name: "default_bytes",
- cargo_env_compat: true,
- cargo_pkg_version: "1.7.3",
- crate_root: "tests/test_default_bytes.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "aho-corasick",
- "default",
- "memchr",
- "perf",
- "perf-cache",
- "perf-dfa",
- "perf-inline",
- "perf-literal",
- "std",
- "unicode",
- "unicode-age",
- "unicode-bool",
- "unicode-case",
- "unicode-gencat",
- "unicode-perl",
- "unicode-script",
- "unicode-segment",
- ],
- rustlibs: [
- "libaho_corasick",
- "liblazy_static",
- "libmemchr",
- "libquickcheck",
- "librand",
- "libregex",
- "libregex_syntax",
- ],
-}
-
-rust_test {
- name: "regex_test_tests_test_nfa",
- host_supported: true,
- crate_name: "nfa",
- cargo_env_compat: true,
- cargo_pkg_version: "1.7.3",
- crate_root: "tests/test_nfa.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "aho-corasick",
- "default",
- "memchr",
- "perf",
- "perf-cache",
- "perf-dfa",
- "perf-inline",
- "perf-literal",
- "std",
- "unicode",
- "unicode-age",
- "unicode-bool",
- "unicode-case",
- "unicode-gencat",
- "unicode-perl",
- "unicode-script",
- "unicode-segment",
- ],
- rustlibs: [
- "libaho_corasick",
- "liblazy_static",
- "libmemchr",
- "libquickcheck",
- "librand",
- "libregex",
- "libregex_syntax",
- ],
-}
-
-rust_test {
- name: "regex_test_tests_test_nfa_bytes",
- host_supported: true,
- crate_name: "nfa_bytes",
- cargo_env_compat: true,
- cargo_pkg_version: "1.7.3",
- crate_root: "tests/test_nfa_bytes.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "aho-corasick",
- "default",
- "memchr",
- "perf",
- "perf-cache",
- "perf-dfa",
- "perf-inline",
- "perf-literal",
- "std",
- "unicode",
- "unicode-age",
- "unicode-bool",
- "unicode-case",
- "unicode-gencat",
- "unicode-perl",
- "unicode-script",
- "unicode-segment",
- ],
- rustlibs: [
- "libaho_corasick",
- "liblazy_static",
- "libmemchr",
- "libquickcheck",
- "librand",
- "libregex",
- "libregex_syntax",
- ],
-}
-
-rust_test {
- name: "regex_test_tests_test_nfa_utf8bytes",
- host_supported: true,
- crate_name: "nfa_utf8bytes",
- cargo_env_compat: true,
- cargo_pkg_version: "1.7.3",
- crate_root: "tests/test_nfa_utf8bytes.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "aho-corasick",
- "default",
- "memchr",
- "perf",
- "perf-cache",
- "perf-dfa",
- "perf-inline",
- "perf-literal",
- "std",
- "unicode",
- "unicode-age",
- "unicode-bool",
- "unicode-case",
- "unicode-gencat",
- "unicode-perl",
- "unicode-script",
- "unicode-segment",
- ],
- rustlibs: [
- "libaho_corasick",
- "liblazy_static",
- "libmemchr",
- "libquickcheck",
- "librand",
- "libregex",
- "libregex_syntax",
- ],
-}
+// This crate has been migrated to external/rust/android-crates-io.
diff --git a/TEST_MAPPING b/TEST_MAPPING
deleted file mode 100644
index c99af76..0000000
--- a/TEST_MAPPING
+++ /dev/null
@@ -1,102 +0,0 @@
-// Generated by update_crate_tests.py for tests that depend on this crate.
-{
- "imports": [
- {
- "path": "external/rust/crates/base64"
- },
- {
- "path": "external/rust/crates/clap/2.33.3"
- },
- {
- "path": "external/rust/crates/libsqlite3-sys"
- },
- {
- "path": "external/rust/crates/once_cell"
- },
- {
- "path": "external/rust/crates/tinytemplate"
- },
- {
- "path": "external/rust/crates/tinyvec"
- },
- {
- "path": "external/rust/crates/unicode-xid"
- },
- {
- "path": "packages/modules/Virtualization/virtualizationmanager"
- },
- {
- "path": "system/keymint/hal"
- },
- {
- "path": "system/security/keystore2"
- },
- {
- "path": "system/security/keystore2/legacykeystore"
- }
- ],
- "presubmit": [
- {
- "name": "regex_test_src_lib"
- },
- {
- "name": "regex_test_tests_test_backtrack"
- },
- {
- "name": "regex_test_tests_test_backtrack_bytes"
- },
- {
- "name": "regex_test_tests_test_backtrack_utf8bytes"
- },
- {
- "name": "regex_test_tests_test_crates_regex"
- },
- {
- "name": "regex_test_tests_test_default"
- },
- {
- "name": "regex_test_tests_test_default_bytes"
- },
- {
- "name": "regex_test_tests_test_nfa"
- },
- {
- "name": "regex_test_tests_test_nfa_bytes"
- },
- {
- "name": "regex_test_tests_test_nfa_utf8bytes"
- }
- ],
- "presubmit-rust": [
- {
- "name": "regex_test_src_lib"
- },
- {
- "name": "regex_test_tests_test_backtrack"
- },
- {
- "name": "regex_test_tests_test_backtrack_bytes"
- },
- {
- "name": "regex_test_tests_test_backtrack_utf8bytes"
- },
- {
- "name": "regex_test_tests_test_crates_regex"
- },
- {
- "name": "regex_test_tests_test_default"
- },
- {
- "name": "regex_test_tests_test_default_bytes"
- },
- {
- "name": "regex_test_tests_test_nfa"
- },
- {
- "name": "regex_test_tests_test_nfa_bytes"
- },
- {
- "name": "regex_test_tests_test_nfa_utf8bytes"
- }
- ]
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
deleted file mode 100644
index 5b612a5..0000000
--- a/cargo_embargo.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "apex_available": [
- "//apex_available:anyapex",
- "//apex_available:platform"
- ],
- "run_cargo": false,
- "tests": true
-}