Migrate 25 crates to monorepo. am: 325d365569
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/p9/+/3248113
Change-Id: Ibee0118958ec185a9f6ab049038cf937edab5a54
Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/Android.bp b/Android.bp
index ff68e35..96beb97 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,73 +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_p9_license"],
-}
-
-license {
- name: "external_rust_crates_p9_license",
- visibility: [":__subpackages__"],
- license_kinds: ["SPDX-license-identifier-BSD-3-Clause"],
- license_text: ["LICENSE"],
-}
-
-rust_library {
- name: "libp9",
- host_supported: true,
- crate_name: "p9",
- cargo_env_compat: true,
- cargo_pkg_version: "0.2.3",
- crate_root: "src/lib.rs",
- edition: "2021",
- rustlibs: [
- "liblibc",
- "libserde",
- ],
- proc_macros: ["libp9_wire_format_derive"],
- compile_multilib: "first",
- apex_available: [
- "//apex_available:platform",
- "//apex_available:anyapex",
- ],
- product_available: true,
- vendor_available: true,
- // Doesn't compile on 32-bit targets.
- target: {
- android_arm: {
- enabled: false,
- },
- android_x86: {
- enabled: false,
- },
- },
-}
-
-rust_test {
- name: "p9_test_src_lib",
- host_supported: true,
- crate_name: "p9",
- cargo_env_compat: true,
- cargo_pkg_version: "0.2.3",
- crate_root: "src/lib.rs",
- test_suites: ["general-tests"],
- auto_gen_config: true,
- test_options: {
- unit_test: true,
- },
- edition: "2021",
- rustlibs: [
- "liblibc",
- "libserde",
- ],
- proc_macros: ["libp9_wire_format_derive"],
- // Doesn't compile on 32-bit targets.
- target: {
- android_arm: {
- enabled: false,
- },
- android_x86: {
- enabled: false,
- },
- },
-}
+// This crate has been migrated to external/rust/android-crates-io.
diff --git a/cargo_embargo.json b/cargo_embargo.json
deleted file mode 100644
index 1b47f0e..0000000
--- a/cargo_embargo.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "run_cargo": false,
- "tests": true,
- "package": {
- "p9": {
- "patch": "patches/Android.bp.patch",
- "host_first_multilib": true
- }
- }
-}