aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Mayle <fmayle@google.com>2023-03-29 18:03:11 -0700
committerFrederick Mayle <fmayle@google.com>2023-03-29 18:03:11 -0700
commitb439b3182b329f4fa872c933a5e1023e19763083 (patch)
tree7a1d746b6f75161103cc2d88e8e4e6f1a70ed0d0
parent6d8387d7bbed1bbc1cac408838ebcc738234d2c7 (diff)
downloadchrono-b439b3182b329f4fa872c933a5e1023e19763083.tar.gz
chrono: enable "serde" featureandroid-u-beta-1-gpl
Needed by crosvm. cargo2android.py is failing for this crate at ToT because of a warning-as-error, so I edited the Android.bp manually. Bug: 275386231 Test: m Change-Id: Ie6b77d6dccf29d70fee4f8bacccd1266565fa8d2
-rw-r--r--Android.bp2
-rw-r--r--cargo2android.json2
2 files changed, 3 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 673d0e8..e7f5dbe 100644
--- a/Android.bp
+++ b/Android.bp
@@ -42,6 +42,7 @@ rust_library {
features: [
"clock",
"libc",
+ "serde",
"std",
"winapi",
],
@@ -49,6 +50,7 @@ rust_library {
"liblibc",
"libnum_integer",
"libnum_traits",
+ "libserde",
],
apex_available: [
"//apex_available:platform",
diff --git a/cargo2android.json b/cargo2android.json
index 90c5a67..cd14e87 100644
--- a/cargo2android.json
+++ b/cargo2android.json
@@ -4,6 +4,6 @@
"com.android.virt"
],
"device": true,
- "features": "std,clock",
+ "features": "std,clock,serde",
"run": true
}