diff options
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -70,13 +70,6 @@ rust_library_rlib { 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 @@ rust_library_rlib { "//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 { |