diff options
author | Sergii Parubochyi <sergiip@google.com> | 2023-10-27 14:10:52 +1100 |
---|---|---|
committer | Sergii Parubochyi <sergiip@google.com> | 2023-10-30 09:13:25 +0000 |
commit | ba533632e381542ac5a2a58a4bcb3c2d5107ae96 (patch) | |
tree | 38e8dcd06923eea7a074914e4cb4159c2709bfde | |
parent | 2a1f8ed26ad133dc4cdb23f3ba00a311c69e9a95 (diff) | |
download | spin-ba533632e381542ac5a2a58a4bcb3c2d5107ae96.tar.gz |
Adding 'once' feature to 'no_std' variant
'once' feature is required by `ring` crate. And now GBL library that has 'no_std' target would depend on `ring`.
Adding this feature would resolve build errors for `no_std` variant of GBL (that depends on 'ring_nostd')
Test: atest
Change-Id: I8b9947af4a39ed8412055520d4e1e6002dfcf7b6
-rw-r--r-- | Android.bp | 1 | ||||
-rw-r--r-- | cargo2android.json | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -61,6 +61,7 @@ rust_library_rlib { edition: "2015", features: [ "mutex", + "once", "spin_mutex", ], apex_available: [ diff --git a/cargo2android.json b/cargo2android.json index 89dc9e6..7cf9c0e 100644 --- a/cargo2android.json +++ b/cargo2android.json @@ -10,7 +10,7 @@ "tests": true }, { - "features": "mutex,spin_mutex", + "features": "once,mutex,spin_mutex", "force-rlib": true, "no-host": true, "suffix": "_nostd", |