diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-24 00:12:24 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-24 00:12:24 +0000 |
commit | bf93ea7331680e3ea4a03d64d17133e34988257b (patch) | |
tree | f54867e657572ec2467ad84e4cf9c73826ccb70b | |
parent | 2f28fb0a381e2319cfe24a8badd2e954f08fd44d (diff) | |
parent | 8cb60c64f93d2a3f480bfc02592f359476054894 (diff) | |
download | lazy_static-android-14.0.0_r33.tar.gz |
Snap for 11139387 from 8cb60c64f93d2a3f480bfc02592f359476054894 to 24Q1-releaseandroid-14.0.0_r37android-14.0.0_r36android-14.0.0_r35android-14.0.0_r34android-14.0.0_r33android-14.0.0_r32android-14.0.0_r31android-14.0.0_r30android-14.0.0_r29android14-qpr2-s5-releaseandroid14-qpr2-s4-releaseandroid14-qpr2-s3-releaseandroid14-qpr2-s2-releaseandroid14-qpr2-s1-releaseandroid14-qpr2-release
Change-Id: I6ae857694d5618e68b791d2c912e54cda271cc61
-rw-r--r-- | Android.bp | 27 | ||||
-rw-r--r-- | cargo_embargo.json | 23 |
2 files changed, 49 insertions, 1 deletions
@@ -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 + } + } + } + ] } |