| diff --git a/patches/std.diff b/patches/std.diff |
| index 8237bc9..e69de29 100644 |
| --- a/patches/std.diff |
| +++ b/patches/std.diff |
| @@ -1,17 +0,0 @@ |
| -diff --git a/src/lib.rs b/src/lib.rs |
| -index 01c81e2..927fc9a 100644 |
| ---- a/src/lib.rs |
| -+++ b/src/lib.rs |
| -@@ -37,8 +37,9 @@ |
| - #![no_std] |
| - #![cfg_attr(feature = "bench", feature(test, unicode_internals))] |
| - |
| --#[cfg(test)] |
| --#[macro_use] |
| -+// #[cfg(test)] |
| -+// ANDROID: Unconditionally use std to allow building as a dylib. |
| -+// #[macro_use] |
| -+#[cfg(android_dylib)] |
| - extern crate std; |
| - |
| - #[cfg(feature = "bench")] |
| diff --git a/src/lib.rs b/src/lib.rs |
| index af7015e..b4d5a1a 100644 |
| --- a/src/lib.rs |
| +++ b/src/lib.rs |
| @@ -37,8 +37,10 @@ |
| #![no_std] |
| #![cfg_attr(feature = "bench", feature(test, unicode_internals))] |
| |
| -#[cfg(test)] |
| -#[macro_use] |
| +// #[cfg(test)] |
| +// ANDROID: Unconditionally use std to allow building as a dylib. |
| +// #[macro_use] |
| +#[cfg(android_dylib)] |
| extern crate std; |
| |
| #[cfg(feature = "bench")] |