• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/Cargo.toml b/Cargo.toml
2index 13205cb..20147e1 100644
3--- a/Cargo.toml
4+++ b/Cargo.toml
5@@ -63,7 +63,7 @@ version = "3"
6
7 [features]
8 alloc = [
9-    "base64ct/alloc",
10+    "base64ct?/alloc",
11     "der/alloc",
12 ]
13 fingerprint = ["sha2"]
14diff --git a/src/lib.rs b/src/lib.rs
15index f466756..995f3bd 100644
16--- a/src/lib.rs
17+++ b/src/lib.rs
18@@ -48,6 +48,10 @@ pub use crate::{
19 };
20 pub use der::{self, asn1::ObjectIdentifier};
21
22+/// Local Android change: Use std to allow building as a dylib.
23+#[cfg(android_dylib)]
24+extern crate std;
25+
26 #[cfg(feature = "alloc")]
27 pub use {crate::traits::EncodePublicKey, der::Document};
28diff --git a/Cargo.toml.orig b/Cargo.toml.orig
29index e7138a7..be1a9f6 100644
30--- a/Cargo.toml.orig
31+++ b/Cargo.toml.orig
32@@ -26,7 +26,7 @@ hex-literal = "0.3"
33 tempfile = "3"
34
35 [features]
36-alloc = ["base64ct/alloc", "der/alloc"]
37+alloc = ["base64ct?/alloc", "der/alloc"]
38 fingerprint = ["sha2"]
39 pem = ["alloc", "der/pem"]
40 std = ["der/std", "alloc"]
41