aboutsummaryrefslogtreecommitdiff
path: root/patches/std.diff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/std.diff')
-rw-r--r--patches/std.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/patches/std.diff b/patches/std.diff
new file mode 100644
index 0000000..9eab575
--- /dev/null
+++ b/patches/std.diff
@@ -0,0 +1,15 @@
+diff --git a/src/lib.rs b/src/lib.rs
+index 42126dd..f37ed52 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -247,6 +247,10 @@
+ #[rustfmt::skip]
+ mod tables;
+
++/// Use std to allow building as a dylib.
++#[cfg(android_dylib)]
++extern crate std;
++
+ use crate::tables::{ASCII_CONTINUE, ASCII_START, CHUNK, LEAF, TRIE_CONTINUE, TRIE_START};
+
+ pub fn is_xid_start(ch: char) -> bool {