diff options
Diffstat (limited to 'cargo2android_nostd.bp')
-rw-r--r-- | cargo2android_nostd.bp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cargo2android_nostd.bp b/cargo2android_nostd.bp new file mode 100644 index 0000000..db81b1a --- /dev/null +++ b/cargo2android_nostd.bp @@ -0,0 +1,22 @@ +rust_library_rlib { + name: "libhalf_nostd", + crate_name: "half", + cargo_env_compat: true, + cargo_pkg_version: "2.2.1", + srcs: ["src/lib.rs"], + edition: "2021", + prefer_rlib: true, + no_stdlibs: true, + stdlibs: [ + "liballoc.rust_sysroot", + "libcompiler_builtins.rust_sysroot", + "libcore.rust_sysroot", + ], + features: [ + "alloc", + ], + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], +} |