diff options
-rw-r--r-- | Android.bp | 9 | ||||
-rw-r--r-- | cargo2android.json | 1 |
2 files changed, 7 insertions, 3 deletions
@@ -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 } |