Migrate v2.27 of protobuf and protobuf-codegen to monorepo.
These go in the "extra versions" managed repo.
Bug: http://b/339424309
Test: treehugger
Change-Id: I1b422cf892839589138ae6d5e9c3e149771472e2
diff --git a/2.27.1/Android.bp b/2.27.1/Android.bp
index 747919c..5a11914 100644
--- a/2.27.1/Android.bp
+++ b/2.27.1/Android.bp
@@ -1,52 +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_protobuf-codegen-2.27.1_license"],
- default_team: "trendy_team_android_rust",
-}
-
-license {
- name: "external_rust_crates_protobuf-codegen-2.27.1_license",
- visibility: [":__subpackages__"],
- license_kinds: ["SPDX-license-identifier-MIT"],
- license_text: ["LICENSE"],
-}
-
-rust_library_host {
- name: "libprotobuf_codegen_deprecated",
- crate_name: "protobuf_codegen",
- cargo_env_compat: true,
- cargo_pkg_version: "2.27.1",
- crate_root: "src/lib.rs",
- edition: "2015",
- rustlibs: ["libprotobuf_deprecated"],
-}
-
-rust_test_host {
- name: "protobuf-codegen_deprecated_test_src_lib",
- crate_name: "protobuf_codegen",
- cargo_env_compat: true,
- cargo_pkg_version: "2.27.1",
- crate_root: "src/lib.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2015",
- rustlibs: ["libprotobuf_deprecated"],
-}
-
-rust_binary_host {
- name: "protoc-gen-rust-deprecated",
- crate_name: "protoc_gen_rust",
- cargo_env_compat: true,
- cargo_pkg_version: "2.27.1",
- crate_root: "src/bin/protoc-gen-rust.rs",
- edition: "2015",
- rustlibs: [
- "libprotobuf_codegen_deprecated",
- "libprotobuf_deprecated",
- ],
-}
+// This crate has been migrated to external/rust/android-crates-io/extra_versions.
diff --git a/2.27.1/cargo_embargo.json b/2.27.1/cargo_embargo.json
deleted file mode 100644
index 9489eb6..0000000
--- a/2.27.1/cargo_embargo.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "module_blocklist": [
- "protobuf_bin_gen_rust_do_not_use"
- ],
- "module_name_overrides": {
- "libprotobuf": "libprotobuf_deprecated",
- "libprotobuf_codegen": "libprotobuf_codegen_deprecated",
- "protobuf-codegen_test_src_lib": "protobuf-codegen_deprecated_test_src_lib",
- "protoc_gen_rust": "protoc-gen-rust-deprecated",
- "external_rust_crates_protobuf-codegen_license": "external_rust_crates_protobuf-codegen-2.27.1_license"
- },
- "package": {
- "protobuf-codegen": {
- "device_supported": false
- }
- },
- "run_cargo": false,
- "tests": true
-}