Migrate 3 crates to monorepo.
These are crates with multiple versions. Only the alternate (deprecated) versions are migrated here.
bitflags 1.3.2
clap 3.2.23
jni 0.20.0
Bug: http://b/339424309
Test: treehugger
Change-Id: I55e341ca212dee4f4caa7952fdd1dd1bcff76f8f
diff --git a/3.2.23/Android.bp b/3.2.23/Android.bp
index dfbf13c..5a11914 100644
--- a/3.2.23/Android.bp
+++ b/3.2.23/Android.bp
@@ -1,37 +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_clap-3.2.23_license"],
- default_team: "trendy_team_android_rust",
-}
-
-license {
- name: "external_rust_crates_clap-3.2.23_license",
- visibility: [":__subpackages__"],
- license_kinds: ["SPDX-license-identifier-Apache-2.0"],
- license_text: ["LICENSE"],
-}
-
-rust_library {
- name: "libclap_3.2.23",
- host_supported: true,
- crate_name: "clap",
- cargo_env_compat: true,
- cargo_pkg_version: "3.2.23",
- crate_root: "src/lib.rs",
- edition: "2021",
- features: ["std"],
- rustlibs: [
- "libbitflags-1.3.2",
- "libclap_lex",
- "libindexmap",
- "libtextwrap",
- ],
- apex_available: [
- "//apex_available:platform",
- "//apex_available:anyapex",
- ],
- product_available: true,
- vendor_available: true,
-}
+// This crate has been migrated to external/rust/android-crates-io/extra_versions.
diff --git a/3.2.23/cargo_embargo.json b/3.2.23/cargo_embargo.json
deleted file mode 100644
index 6111d0a..0000000
--- a/3.2.23/cargo_embargo.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "features": [
- "std"
- ],
- "module_blocklist": [
- "stdio_fixture"
- ],
- "module_name_overrides": {
- "libbitflags": "libbitflags-1.3.2",
- "libclap": "libclap_3.2.23",
- "external_rust_crates_clap_license": "external_rust_crates_clap-3.2.23_license"
- },
- "run_cargo": false
-}