Migrate 26 crates to monorepo
tokio-util
tower
tower-layer
tower-service
tracing
tracing-attributes
tracing-core
tracing-subscriber
try-lock
tungstenite
twox-hash
ucd-trie
unicode-bidi
unicode-normalization
unicode-segmentation
unicode-width
unsafe-libyaml
userfaultfd
utf-8
uuid
weak-table
webpki
which
winnow
x509-cert
xml-rs
Bug: http://b/339424309
Test: treehugger
Change-Id: I4fa104a1ef74732a47aed1ad3ce0850577e2fe4b
diff --git a/Android.bp b/Android.bp
index c8a4e08..96beb97 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,70 +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_x509-cert_license"],
-}
-
-license {
- name: "external_rust_crates_x509-cert_license",
- visibility: [":__subpackages__"],
- license_kinds: ["SPDX-license-identifier-Apache-2.0"],
- license_text: ["LICENSE"],
-}
-
-rust_library {
- name: "libx509_cert",
- host_supported: true,
- crate_name: "x509_cert",
- cargo_env_compat: true,
- cargo_pkg_version: "0.2.4",
- crate_root: "src/lib.rs",
- edition: "2021",
- rustlibs: [
- "libconst_oid",
- "libder",
- "libspki",
- ],
- apex_available: [
- "//apex_available:platform",
- "com.android.virt",
- ],
- product_available: true,
- vendor_available: true,
- visibility: [
- "//packages/modules/Virtualization:__subpackages__",
- "//system/keymint:__subpackages__",
- ],
-
-}
-
-rust_library_rlib {
- name: "libx509_cert_nostd",
- crate_name: "x509_cert",
- cargo_env_compat: true,
- cargo_pkg_version: "0.2.4",
- crate_root: "src/lib.rs",
- edition: "2021",
- rustlibs: [
- "libconst_oid_nostd",
- "libder_nostd",
- "libspki_nostd",
- ],
- apex_available: [
- "//apex_available:platform",
- "com.android.virt",
- ],
- prefer_rlib: true,
- no_stdlibs: true,
- stdlibs: [
- "libcompiler_builtins.rust_sysroot",
- "libcore.rust_sysroot",
- ],
- product_available: true,
- vendor_available: true,
- visibility: [
- "//packages/modules/Virtualization:__subpackages__",
- "//system/keymint:__subpackages__",
- ],
-
-}
+// This crate has been migrated to external/rust/android-crates-io.
diff --git a/cargo2android_viz.bp b/cargo2android_viz.bp
deleted file mode 100644
index 8ce03b7..0000000
--- a/cargo2android_viz.bp
+++ /dev/null
@@ -1,4 +0,0 @@
-visibility: [
- "//packages/modules/Virtualization:__subpackages__",
- "//system/keymint:__subpackages__",
-]
diff --git a/cargo_embargo.json b/cargo_embargo.json
deleted file mode 100644
index a36fc1f..0000000
--- a/cargo_embargo.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "apex_available": [
- "//apex_available:platform",
- "com.android.virt"
- ],
- "features": [],
- "run_cargo": false,
- "variants": [
- {
- "package": {
- "x509-cert": {
- "add_module_block": "cargo2android_viz.bp"
- }
- }
- },
- {
- "module_name_overrides": {
- "libconst_oid": "libconst_oid_nostd",
- "libder": "libder_nostd",
- "libflagset": "libflagset_nostd",
- "libspki": "libspki_nostd",
- "libx509_cert": "libx509_cert_nostd"
- },
- "package": {
- "x509-cert": {
- "add_module_block": "cargo2android_viz.bp",
- "force_rlib": true,
- "host_supported": false,
- "no_std": true
- }
- }
- }
- ]
-}