aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-02 15:42:18 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-02 15:42:18 +0000
commit49a3aea521fe5e2d82f13e361538917e5e586878 (patch)
treede03e1d269ed86cff9d7e4ffbcc09e478f02b7dd
parent8f213092ec751cb769c4af28e0d9ad509b062731 (diff)
parenta7bbe585861e59679eaed9d697a006db85918aab (diff)
downloaduuid-49a3aea521fe5e2d82f13e361538917e5e586878.tar.gz
Snap for 9679998 from a7bbe585861e59679eaed9d697a006db85918aab to sdk-releaseplatform-tools-34.0.1
Change-Id: I5166a75ed365ea037dd34ccff3014c4c3ac75d0e
-rw-r--r--Android.bp16
-rw-r--r--cargo2android.json1
-rw-r--r--cargo2android_nostd.bp17
3 files changed, 34 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 7feffa5..2f631a8 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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",
+ ],
+}