summaryrefslogtreecommitdiff
path: root/patches/std.diff
blob: 371910c1202c3a6e36930f783f2b9bbdac75bc7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib.rs b/lib.rs
index 3bcd6e2..01ccbf9 100644
--- a/lib.rs
+++ b/lib.rs
@@ -1,5 +1,8 @@
 #![no_std]
 
+// ANDROID: Use std to allow building as a dylib.
+extern crate std;
+
 /// Check if an expression matches a refutable pattern.
 ///
 /// Syntax: `matches!(` *expression* `,` *pattern* `)`