add crosvm to com.android.virt am: f2d3df3b22 am: 98d24af923 am: 9dcbc59ba6
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/futures-task/+/1526462
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ibdea68f2fb79bd2a19c6d75b8d7bd940c2309adc
diff --git a/Android.bp b/Android.bp
index 76ef162..26d6e64 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --device --dependencies --tests.
+// This file is generated by cargo2android.py --run --dependencies --device --tests --patch=patches/Android.bp.patch.
rust_defaults {
name: "futures-task_defaults",
@@ -43,7 +43,11 @@
rustlibs: [
"libonce_cell",
],
+ apex_available: [
+ "//apex_available:platform",
+ "com.android.virt",
+ ],
}
// dependent_library ["feature_list"]
-// once_cell-1.4.1 "std"
+// once_cell-1.5.2 "alloc,std"
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
new file mode 100644
index 0000000..2ac6bc4
--- /dev/null
+++ b/patches/Android.bp.patch
@@ -0,0 +1,15 @@
+diff --git a/Android.bp b/Android.bp
+index 76ef162..18bac85 100644
+--- a/Android.bp
++++ b/Android.bp
+@@ -43,6 +43,10 @@ rust_library {
+ rustlibs: [
+ "libonce_cell",
+ ],
++ apex_available: [
++ "//apex_available:platform",
++ "com.android.virt",
++ ],
+ }
+
+ // dependent_library ["feature_list"]