diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-17 00:13:59 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-17 00:13:59 +0000 |
commit | e6a5adcd2630a799976f171f6fb490e89c80e5df (patch) | |
tree | 530d2db0e4463a6076148cdb27ebb6889998d4b6 | |
parent | 369e35b473610d56f6eabd6c30091eb3454f002a (diff) | |
parent | 6d4cd402e4881e420873bd3def9ff05f03080c5c (diff) | |
download | spin-e6a5adcd2630a799976f171f6fb490e89c80e5df.tar.gz |
Snap for 11111096 from 6d4cd402e4881e420873bd3def9ff05f03080c5c to 24Q1-release
Change-Id: I8d6d4a475b5c3e6166fdeb3967c1647f9969e2f7
-rw-r--r-- | Android.bp | 44 | ||||
-rw-r--r-- | cargo2android.json | 20 | ||||
-rw-r--r-- | cargo_embargo.json | 30 |
3 files changed, 51 insertions, 43 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 { @@ -52,6 +52,26 @@ rust_library { min_sdk_version: "29", } +rust_test { + name: "spin_test_src_lib", + host_supported: true, + crate_name: "spin", + cargo_env_compat: true, + cargo_pkg_version: "0.9.7", + srcs: ["src/lib.rs"], + test_suites: ["general-tests"], + auto_gen_config: true, + test_options: { + unit_test: true, + }, + edition: "2015", + features: [ + "once", + "std", + ], + rustlibs: ["libcriterion"], +} + rust_library_rlib { name: "libspin_nostd", crate_name: "spin", @@ -78,25 +98,3 @@ rust_library_rlib { vendor_available: true, min_sdk_version: "29", } - -rust_test { - name: "spin_test_src_lib", - host_supported: true, - crate_name: "spin", - cargo_env_compat: true, - cargo_pkg_version: "0.9.7", - srcs: ["src/lib.rs"], - test_suites: ["general-tests"], - auto_gen_config: true, - test_options: { - unit_test: true, - }, - edition: "2015", - features: [ - "once", - "std", - ], - rustlibs: [ - "libcriterion", - ], -} diff --git a/cargo2android.json b/cargo2android.json deleted file mode 100644 index 7cf9c0e..0000000 --- a/cargo2android.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "dependencies": true, - "device": true, - "ignore-cargo-errors": true, - "min-sdk-version": "29", - "run": true, - "variants": [ - { - "features": "once,std", - "tests": true - }, - { - "features": "once,mutex,spin_mutex", - "force-rlib": true, - "no-host": true, - "suffix": "_nostd", - "no-std": true - } - ] -} diff --git a/cargo_embargo.json b/cargo_embargo.json new file mode 100644 index 0000000..d3b04d4 --- /dev/null +++ b/cargo_embargo.json @@ -0,0 +1,30 @@ +{ + "min_sdk_version": "29", + "run_cargo": false, + "variants": [ + { + "features": [ + "once", + "std" + ], + "tests": true + }, + { + "features": [ + "once", + "mutex", + "spin_mutex" + ], + "module_name_overrides": { + "libspin": "libspin_nostd" + }, + "package": { + "spin": { + "force_rlib": true, + "host_supported": false, + "no_std": true + } + } + } + ] +} |