aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-08-16 16:39:51 -0700
committerJoel Galenson <jgalenson@google.com>2021-08-16 16:47:35 -0700
commit3795af99b6e5949d76eb70ee552e1bc9b0b2a8ec (patch)
tree5e0449ae670fa8f7617c495ba0bab9a70205b823
parente045466d5911d70114d2223ecf2b88331272bac2 (diff)
downloadx509-parser-3795af99b6e5949d76eb70ee552e1bc9b0b2a8ec.tar.gz
Fix rustdoc build.
The rustdoc for this crate fails if the validate feature is not enabled. Let's enable it temporarily to fix that. Note that the other changes to the Android.bp are due to unrelated changes to cargo2android.py that shouldn't affect anything. Test: m rustdoc Change-Id: I8bcc97dda4dcf4684366b7f7ebed32eb2e416cb8
-rw-r--r--Android.bp9
-rw-r--r--cargo2android.json1
2 files changed, 7 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp
index 91bde0f..62fc34d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,8 +1,6 @@
// This file is generated by cargo2android.py --config cargo2android.json.
// Do not modify this file as changes will be overridden on upgrade.
-
-
package {
default_applicable_licenses: ["external_rust_crates_x509-parser_license"],
}
@@ -43,9 +41,14 @@ rust_library {
name: "libx509_parser",
host_supported: true,
crate_name: "x509_parser",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.10.0",
srcs: ["src/lib.rs"],
edition: "2018",
- features: ["default"],
+ features: [
+ "default",
+ "validate",
+ ],
rustlibs: [
"libbase64_rust",
"libchrono",
diff --git a/cargo2android.json b/cargo2android.json
index 5f001a6..e24b32a 100644
--- a/cargo2android.json
+++ b/cargo2android.json
@@ -3,6 +3,7 @@
"data_encoding"
],
"device": true,
+ "features": "default,validate",
"run": true
}