• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/patches/std.diff b/patches/std.diff
2index 8237bc9..e69de29 100644
3--- a/patches/std.diff
4+++ b/patches/std.diff
5@@ -1,17 +0,0 @@
6-diff --git a/src/lib.rs b/src/lib.rs
7-index 01c81e2..927fc9a 100644
8---- a/src/lib.rs
9-+++ b/src/lib.rs
10-@@ -37,8 +37,9 @@
11- #![no_std]
12- #![cfg_attr(feature = "bench", feature(test, unicode_internals))]
13-
14--#[cfg(test)]
15--#[macro_use]
16-+// #[cfg(test)]
17-+// ANDROID: Unconditionally use std to allow building as a dylib.
18-+// #[macro_use]
19-+#[cfg(android_dylib)]
20- extern crate std;
21-
22- #[cfg(feature = "bench")]
23diff --git a/src/lib.rs b/src/lib.rs
24index af7015e..b4d5a1a 100644
25--- a/src/lib.rs
26+++ b/src/lib.rs
27@@ -37,8 +37,10 @@
28 #![no_std]
29 #![cfg_attr(feature = "bench", feature(test, unicode_internals))]
30
31-#[cfg(test)]
32-#[macro_use]
33+// #[cfg(test)]
34+// ANDROID: Unconditionally use std to allow building as a dylib.
35+// #[macro_use]
36+#[cfg(android_dylib)]
37 extern crate std;
38
39 #[cfg(feature = "bench")]
40