Use new cargo2android no-std flag rather than extra manual block.
Bug: 279614907
Test: m pvmfw
Change-Id: Ia673fd0dce9259116afb9c1b884a7b570547a2dc
diff --git a/Android.bp b/Android.bp
index 676732d..7e5d067 100644
--- a/Android.bp
+++ b/Android.bp
@@ -70,13 +70,6 @@
cargo_pkg_version: "1.0.152",
srcs: ["src/lib.rs"],
edition: "2015",
- prefer_rlib: true,
- no_stdlibs: true,
- stdlibs: [
- "liballoc.rust_sysroot",
- "libcompiler_builtins.rust_sysroot",
- "libcore.rust_sysroot",
- ],
features: [
"alloc",
"derive",
@@ -87,6 +80,16 @@
"//apex_available:platform",
"//apex_available:anyapex",
],
+ prefer_rlib: true,
+ no_stdlibs: true,
+ stdlibs: [
+ "liballoc.rust_sysroot",
+ "libcompiler_builtins.rust_sysroot",
+ "libcore.rust_sysroot",
+ ],
+ product_available: true,
+ vendor_available: true,
+ min_sdk_version: "29",
}
rust_test {