From ba533632e381542ac5a2a58a4bcb3c2d5107ae96 Mon Sep 17 00:00:00 2001 From: Sergii Parubochyi Date: Fri, 27 Oct 2023 14:10:52 +1100 Subject: 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 --- Android.bp | 1 + cargo2android.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Android.bp b/Android.bp index 63d8ab4..711fbf7 100644 --- a/Android.bp +++ b/Android.bp @@ -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", -- cgit v1.2.3