aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Belsare <asbel@google.com>2022-02-04 21:57:02 +0000
committerAditya Belsare <asbel@google.com>2022-02-04 21:59:27 +0000
commite3e8fc857334331027ee7c5c62fc61aa2dc183b9 (patch)
tree1c721d4cabcf91af10d91a1f908a18191572cdfe
parent668434006be05ccb771e8975b1ce79c50abc1bd9 (diff)
downloadciborium-io-e3e8fc857334331027ee7c5c62fc61aa2dc183b9.tar.gz
Enable feature alloc when building ciborium-io
Bug: 216214232 Test: mm Change-Id: I9b42f1986ea7b91806246cffe7b03cac482f4bb5
-rw-r--r--Android.bp3
-rw-r--r--cargo2android.json6
2 files changed, 8 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index db6c972..6c98b7e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --device --dependencies.
+// This file is generated by cargo2android.py --config cargo2android.json.
// Do not modify this file as changes will be overridden on upgrade.
@@ -11,4 +11,5 @@ rust_library {
cargo_pkg_version: "0.2.0",
srcs: ["src/lib.rs"],
edition: "2021",
+ features: ["alloc"],
}
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..a845b86
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,6 @@
+{
+ "device": true,
+ "features": "alloc,",
+ "run": true,
+ "dependencies": true
+}