Migrate 9 crates to monorepo.
matchit
flate2
vulkano
libfuzzer-sys
clang-sys
unicode-ident
jni
tokio-openssl
serde_yaml
Bug: http://b/339424309
Test: treehugger
Change-Id: Ib5fc79f68a4f66fc4d7627f0a9eb20e20ef1b04d
diff --git a/Android.bp b/Android.bp
index 444f861..96beb97 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,181 +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_flate2_license"],
- default_team: "trendy_team_android_rust",
-}
-
-license {
- name: "external_rust_crates_flate2_license",
- visibility: [":__subpackages__"],
- license_kinds: ["SPDX-license-identifier-Apache-2.0"],
- license_text: ["LICENSE"],
-}
-
-rust_test {
- name: "flate2_test_src_lib",
- crate_name: "flate2",
- cargo_env_compat: true,
- cargo_pkg_version: "1.0.28",
- crate_root: "src/lib.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "any_impl",
- "any_zlib",
- "libz-sys",
- "zlib",
- ],
- rustlibs: [
- "libcrc32fast",
- "liblibz_sys",
- "libquickcheck",
- "librand",
- ],
-}
-
-rust_test {
- name: "flate2_test_tests_early-flush",
- crate_name: "early_flush",
- cargo_env_compat: true,
- cargo_pkg_version: "1.0.28",
- crate_root: "tests/early-flush.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "any_impl",
- "any_zlib",
- "libz-sys",
- "zlib",
- ],
- rustlibs: [
- "libcrc32fast",
- "libflate2",
- "liblibz_sys",
- "libquickcheck",
- "librand",
- ],
-}
-
-rust_test {
- name: "flate2_test_tests_empty-read",
- crate_name: "empty_read",
- cargo_env_compat: true,
- cargo_pkg_version: "1.0.28",
- crate_root: "tests/empty-read.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "any_impl",
- "any_zlib",
- "libz-sys",
- "zlib",
- ],
- rustlibs: [
- "libcrc32fast",
- "libflate2",
- "liblibz_sys",
- "libquickcheck",
- "librand",
- ],
-}
-
-rust_test {
- name: "flate2_test_tests_gunzip",
- crate_name: "gunzip",
- cargo_env_compat: true,
- cargo_pkg_version: "1.0.28",
- crate_root: "tests/gunzip.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "any_impl",
- "any_zlib",
- "libz-sys",
- "zlib",
- ],
- rustlibs: [
- "libcrc32fast",
- "libflate2",
- "liblibz_sys",
- "libquickcheck",
- "librand",
- ],
- data: [
- "tests/corrupt-gz-file.bin",
- "tests/good-file.gz",
- "tests/good-file.txt",
- "tests/multi.gz",
- "tests/multi.txt",
- ],
-}
-
-rust_test {
- name: "flate2_test_tests_zero-write",
- crate_name: "zero_write",
- cargo_env_compat: true,
- cargo_pkg_version: "1.0.28",
- crate_root: "tests/zero-write.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2018",
- features: [
- "any_impl",
- "any_zlib",
- "libz-sys",
- "zlib",
- ],
- rustlibs: [
- "libcrc32fast",
- "libflate2",
- "liblibz_sys",
- "libquickcheck",
- "librand",
- ],
-}
-
-rust_library {
- name: "libflate2",
- host_supported: true,
- crate_name: "flate2",
- cargo_env_compat: true,
- cargo_pkg_version: "1.0.28",
- crate_root: "src/lib.rs",
- edition: "2018",
- features: [
- "any_impl",
- "any_zlib",
- "libz-sys",
- "zlib",
- ],
- rustlibs: [
- "libcrc32fast",
- "liblibz_sys",
- ],
- apex_available: [
- "//apex_available:platform",
- "com.android.virt",
- ],
- product_available: true,
- vendor_available: true,
-}
+// This crate has been migrated to external/rust/android-crates-io.
diff --git a/TEST_MAPPING b/TEST_MAPPING
deleted file mode 100644
index 7608707..0000000
--- a/TEST_MAPPING
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by update_crate_tests.py for tests that depend on this crate.
-{
- "imports": [
- {
- "path": "packages/modules/Virtualization/apkdmverity"
- },
- {
- "path": "packages/modules/Virtualization/avmd"
- },
- {
- "path": "packages/modules/Virtualization/libs/apexutil"
- },
- {
- "path": "packages/modules/Virtualization/libs/apkverify"
- },
- {
- "path": "packages/modules/Virtualization/microdroid_manager"
- },
- {
- "path": "packages/modules/Virtualization/virtualizationmanager"
- },
- {
- "path": "packages/modules/Virtualization/vm"
- },
- {
- "path": "packages/modules/Virtualization/zipfuse"
- }
- ],
- "presubmit": [
- {
- "name": "flate2_test_src_lib"
- },
- {
- "name": "flate2_test_tests_early-flush"
- },
- {
- "name": "flate2_test_tests_empty-read"
- },
- {
- "name": "flate2_test_tests_gunzip"
- },
- {
- "name": "flate2_test_tests_zero-write"
- }
- ],
- "presubmit-rust": [
- {
- "name": "flate2_test_src_lib"
- },
- {
- "name": "flate2_test_tests_early-flush"
- },
- {
- "name": "flate2_test_tests_empty-read"
- },
- {
- "name": "flate2_test_tests_gunzip"
- },
- {
- "name": "flate2_test_tests_zero-write"
- }
- ]
-}
diff --git a/cargo_embargo.json b/cargo_embargo.json
deleted file mode 100644
index 9651dbe..0000000
--- a/cargo_embargo.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "apex_available": [
- "//apex_available:platform",
- "com.android.virt"
- ],
- "features": [
- "zlib"
- ],
- "package": {
- "flate2": {
- "patch": "patches/Android.bp.patch",
- "test_data": {
- "tests/gunzip.rs": [
- "tests/corrupt-gz-file.bin",
- "tests/good-file.gz",
- "tests/good-file.txt",
- "tests/multi.gz",
- "tests/multi.txt"
- ]
- }
- }
- },
- "run_cargo": false,
- "tests": true
-}