add crosvm to com.android.virt am: 0d452fd6f8
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/proc-macro-nested/+/1526371
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I9beca9f4e39181bf0bbd5e5e61d44c5986e8931d
diff --git a/Android.bp b/Android.bp
index b9fd260..40c4426 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --device --dependencies --tests --copy-out.
+// This file is generated by cargo2android.py --run --dependencies --device --tests --copy-out --patch=patches/Android.bp.patch.
genrule {
name: "copy_proc-macro-nested_build_out",
@@ -16,6 +16,10 @@
":copy_proc-macro-nested_build_out",
],
edition: "2015",
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.virt",
+ ],
}
rust_defaults {
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
new file mode 100644
index 0000000..c80e275
--- /dev/null
+++ b/patches/Android.bp.patch
@@ -0,0 +1,15 @@
+diff --git a/Android.bp b/Android.bp
+index b9fd260..103ae9b 100644
+--- a/Android.bp
++++ b/Android.bp
+@@ -16,6 +16,10 @@ rust_library {
+ ":copy_proc-macro-nested_build_out",
+ ],
+ edition: "2015",
++ apex_available: [
++ "//apex_available:platform",
++ "com.android.virt",
++ ],
+ }
+
+ rust_defaults {