diff options
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 33 |
1 files changed, 30 insertions, 3 deletions
@@ -1,8 +1,6 @@ // This file is generated by cargo2android.py --config cargo2android.json. // Do not modify this file as changes will be overridden on upgrade. - - package { default_applicable_licenses: ["external_rust_crates_ciborium-io_license"], } @@ -25,11 +23,40 @@ rust_library { host_supported: true, crate_name: "ciborium_io", cargo_env_compat: true, - cargo_pkg_version: "0.2.0", + cargo_pkg_version: "0.2.1", srcs: ["src/lib.rs"], edition: "2021", features: [ "alloc", "std", ], + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], + product_available: true, + vendor_available: true, +} + +rust_library_rlib { + name: "libciborium_io_nostd", + crate_name: "ciborium_io", + cargo_env_compat: true, + cargo_pkg_version: "0.2.1", + srcs: ["src/lib.rs"], + edition: "2021", + features: ["alloc"], + apex_available: [ + "//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, } |