diff options
-rw-r--r-- | Android.bp | 6 | ||||
-rw-r--r-- | patches/Android.bp.patch | 13 |
2 files changed, 18 insertions, 1 deletions
@@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --run --dependencies --device. +// This file is generated by cargo2android.py --run --dependencies --device --patch=patches/Android.bp.patch. rust_library { name: "libbytes", @@ -10,4 +10,8 @@ rust_library { "default", "std", ], + apex_available: [ + "//apex_available:platform", + "com.android.virt", + ], } diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch new file mode 100644 index 0000000..2290fe4 --- /dev/null +++ b/patches/Android.bp.patch @@ -0,0 +1,13 @@ +diff --git a/Android.bp b/Android.bp +index 16c63a4..75d6b62 100644 +--- a/Android.bp ++++ b/Android.bp +@@ -10,4 +10,8 @@ rust_library { + "default", + "std", + ], ++ apex_available: [ ++ "//apex_available:platform", ++ "com.android.virt", ++ ], + } |