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