diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-03-02 15:42:18 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-03-02 15:42:18 +0000 |
commit | 49a3aea521fe5e2d82f13e361538917e5e586878 (patch) | |
tree | de03e1d269ed86cff9d7e4ffbcc09e478f02b7dd | |
parent | 8f213092ec751cb769c4af28e0d9ad509b062731 (diff) | |
parent | a7bbe585861e59679eaed9d697a006db85918aab (diff) | |
download | uuid-49a3aea521fe5e2d82f13e361538917e5e586878.tar.gz |
Snap for 9679998 from a7bbe585861e59679eaed9d697a006db85918aab to sdk-releaseplatform-tools-34.0.1
Change-Id: I5166a75ed365ea037dd34ccff3014c4c3ac75d0e
-rw-r--r-- | Android.bp | 16 | ||||
-rw-r--r-- | cargo2android.json | 1 | ||||
-rw-r--r-- | cargo2android_nostd.bp | 17 |
3 files changed, 34 insertions, 0 deletions
@@ -62,3 +62,19 @@ rust_library { "com.android.virt", ], } + +rust_library_rlib { + name: "libuuid_nostd", + crate_name: "uuid", + cargo_env_compat: true, + cargo_pkg_version: "0.8.2", + srcs: ["src/lib.rs"], + edition: "2018", + prefer_rlib: true, + no_stdlibs: true, + stdlibs: [ + "libcompiler_builtins.rust_sysroot", + "libcore.rust_sysroot", + ], +} + diff --git a/cargo2android.json b/cargo2android.json index 21b1d6c..8e77693 100644 --- a/cargo2android.json +++ b/cargo2android.json @@ -1,4 +1,5 @@ { + "add-toplevel-block": "cargo2android_nostd.bp", "apex-available": [ "//apex_available:platform", "com.android.virt" diff --git a/cargo2android_nostd.bp b/cargo2android_nostd.bp new file mode 100644 index 0000000..da60055 --- /dev/null +++ b/cargo2android_nostd.bp @@ -0,0 +1,17 @@ +rust_library_rlib { + name: "libuuid_nostd", + crate_name: "uuid", + cargo_env_compat: true, + cargo_pkg_version: "0.8.2", + srcs: ["src/lib.rs"], + edition: "2018", + features: [ + "macro-diagnostics", + ], + prefer_rlib: true, + no_stdlibs: true, + stdlibs: [ + "libcompiler_builtins.rust_sysroot", + "libcore.rust_sysroot", + ], +} |