aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-23 02:12:05 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-23 02:12:05 +0000
commitad5ef1002f72e1f92b06b683cbe1281f41106c67 (patch)
treef54867e657572ec2467ad84e4cf9c73826ccb70b
parent09ed803cae7cbdca5adc13bc842d976242ab2b37 (diff)
parente72d1326c602339ed0e889a386f9f792d8e9c1d7 (diff)
downloadlazy_static-ad5ef1002f72e1f92b06b683cbe1281f41106c67.tar.gz
Snap for 11136448 from e72d1326c602339ed0e889a386f9f792d8e9c1d7 to sdk-release
Change-Id: I795c19fac128abf0d841011eb422e91bda0a3ee4
-rw-r--r--Android.bp27
-rw-r--r--cargo_embargo.json23
2 files changed, 49 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 169df1c..f78d41a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -69,3 +69,30 @@ rust_library {
vendor_available: true,
min_sdk_version: "29",
}
+
+rust_library_rlib {
+ name: "liblazy_static_nostd",
+ crate_name: "lazy_static",
+ cargo_env_compat: true,
+ cargo_pkg_version: "1.4.0",
+ srcs: ["src/lib.rs"],
+ edition: "2015",
+ features: [
+ "spin",
+ "spin_no_std",
+ ],
+ rustlibs: ["libspin_nostd"],
+ apex_available: [
+ "//apex_available:platform",
+ "//apex_available:anyapex",
+ ],
+ prefer_rlib: true,
+ no_stdlibs: true,
+ stdlibs: [
+ "libcompiler_builtins.rust_sysroot",
+ "libcore.rust_sysroot",
+ ],
+ product_available: true,
+ vendor_available: true,
+ min_sdk_version: "29",
+}
diff --git a/cargo_embargo.json b/cargo_embargo.json
index 8902785..e32afad 100644
--- a/cargo_embargo.json
+++ b/cargo_embargo.json
@@ -10,5 +10,26 @@
]
}
},
- "tests": true
+ "variants": [
+ {
+ "tests": true
+ },
+ {
+ "features": [
+ "spin",
+ "spin_no_std"
+ ],
+ "module_name_overrides": {
+ "liblazy_static": "liblazy_static_nostd",
+ "libspin": "libspin_nostd"
+ },
+ "package": {
+ "lazy_static": {
+ "force_rlib": true,
+ "host_supported": false,
+ "no_std": true
+ }
+ }
+ }
+ ]
}