diff options
author | Andrew Walbran <qwandor@google.com> | 2023-11-14 14:57:40 +0000 |
---|---|---|
committer | Andrew Walbran <qwandor@google.com> | 2023-11-14 14:57:40 +0000 |
commit | 1985d7e14e5b096cc517a6de20699b1293c25b84 (patch) | |
tree | fe871bf9bad6e29066b3123e78112f0fc60fe02e | |
parent | 98e5660470b2039207b3cc122b01014d890f8051 (diff) | |
download | lazy_static-1985d7e14e5b096cc517a6de20699b1293c25b84.tar.gz |
Migrate to cargo_embargo.
Bug: 293289578
Test: Ran cargo_embargo, compared Android.bp
Change-Id: I061c71ed9c952acbae0c742acfc55f46c7192f82
-rw-r--r-- | Android.bp | 10 | ||||
-rw-r--r-- | cargo2android.json | 18 | ||||
-rw-r--r-- | cargo_embargo.json | 14 |
3 files changed, 17 insertions, 25 deletions
@@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --config cargo2android.json. +// This file is generated by cargo_embargo. // Do not modify this file as changes will be overridden on upgrade. package { @@ -39,9 +39,8 @@ license { rust_test { name: "lazy_static_test_tests_test", - // has rustc warnings host_supported: true, - crate_name: "lazy_static", + crate_name: "test", cargo_env_compat: true, cargo_pkg_version: "1.4.0", srcs: ["tests/test.rs"], @@ -51,14 +50,11 @@ rust_test { unit_test: true, }, edition: "2015", - rustlibs: [ - "liblazy_static", - ], + rustlibs: ["liblazy_static"], } rust_library { name: "liblazy_static", - // has rustc warnings host_supported: true, crate_name: "lazy_static", cargo_env_compat: true, diff --git a/cargo2android.json b/cargo2android.json deleted file mode 100644 index b634ad1..0000000 --- a/cargo2android.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "apex-available": [ - "//apex_available:platform", - "//apex_available:anyapex" - ], - "dependency-blocklist": [ - "doc_comment" - ], - "device": true, - "min-sdk-version": "29", - "run": true, - "test-blocklist": [ - "tests/no_std.rs" - ], - "tests": true, - "vendor-available": true, - "product-available": true -} diff --git a/cargo_embargo.json b/cargo_embargo.json new file mode 100644 index 0000000..8902785 --- /dev/null +++ b/cargo_embargo.json @@ -0,0 +1,14 @@ +{ + "min_sdk_version": "29", + "module_blocklist": [ + "lazy_static_test_tests_no_std" + ], + "package": { + "lazy_static": { + "dep_blocklist": [ + "libdoc_comment" + ] + } + }, + "tests": true +} |