Migrate tokio-test to monorepo
Bug: http://b/339424309
Test: treehugger
Change-Id: I426c1f9df0933f9371fbaa6aad434940e6eac706
diff --git a/Android.bp b/Android.bp
index f23d4e5..96beb97 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,108 +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_tokio-test_license"],
-}
-
-license {
- name: "external_rust_crates_tokio-test_license",
- visibility: [":__subpackages__"],
- license_kinds: ["SPDX-license-identifier-MIT"],
- license_text: ["LICENSE"],
-}
-
-rust_library {
- name: "libtokio_test",
- host_supported: true,
- crate_name: "tokio_test",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.2",
- crate_root: "src/lib.rs",
- edition: "2018",
- rustlibs: [
- "libasync_stream",
- "libbytes",
- "libfutures_core",
- "libtokio",
- "libtokio_stream",
- ],
- apex_available: [
- "//apex_available:platform",
- "//apex_available:anyapex",
- ],
- product_available: true,
- vendor_available: true,
-}
-
-rust_test {
- name: "tokio-test_test_tests_block_on",
- host_supported: true,
- crate_name: "block_on",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.2",
- crate_root: "tests/block_on.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- rustlibs: [
- "libasync_stream",
- "libbytes",
- "libfutures_core",
- "libfutures_util",
- "libtokio",
- "libtokio_stream",
- "libtokio_test",
- ],
-}
-
-rust_test {
- name: "tokio-test_test_tests_io",
- host_supported: true,
- crate_name: "io",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.2",
- crate_root: "tests/io.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- rustlibs: [
- "libasync_stream",
- "libbytes",
- "libfutures_core",
- "libfutures_util",
- "libtokio",
- "libtokio_stream",
- "libtokio_test",
- ],
-}
-
-rust_test {
- name: "tokio-test_test_tests_macros",
- host_supported: true,
- crate_name: "macros",
- cargo_env_compat: true,
- cargo_pkg_version: "0.4.2",
- crate_root: "tests/macros.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- rustlibs: [
- "libasync_stream",
- "libbytes",
- "libfutures_core",
- "libfutures_util",
- "libtokio",
- "libtokio_stream",
- "libtokio_test",
- ],
-}
+// This crate has been migrated to external/rust/android-crates-io.
diff --git a/TEST_MAPPING b/TEST_MAPPING
deleted file mode 100644
index 04703e9..0000000
--- a/TEST_MAPPING
+++ /dev/null
@@ -1,33 +0,0 @@
-// Generated by update_crate_tests.py for tests that depend on this crate.
-{
- "imports": [
- {
- "path": "external/rust/crates/async-stream"
- },
- {
- "path": "external/rust/crates/tokio"
- }
- ],
- "presubmit": [
- {
- "name": "tokio-test_test_tests_block_on"
- },
- {
- "name": "tokio-test_test_tests_io"
- },
- {
- "name": "tokio-test_test_tests_macros"
- }
- ],
- "presubmit-rust": [
- {
- "name": "tokio-test_test_tests_block_on"
- },
- {
- "name": "tokio-test_test_tests_io"
- },
- {
- "name": "tokio-test_test_tests_macros"
- }
- ]
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
deleted file mode 100644
index 9a0a579..0000000
--- a/cargo_embargo.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "tests": true
-}