1diff --git a/src/lib.rs b/src/lib.rs
2index 304b0da..4c70e26 100644
3--- a/src/lib.rs
4+++ b/src/lib.rs
5@@ -81,6 +81,9 @@
6 // mem::take and #[non_exhaustive] requires Rust 1.40
7 #![allow(clippy::mem_replace_with_default, clippy::manual_non_exhaustive)]
8
9+// ANDROID: Use std to allow building as a dylib.
10+extern crate std;
11+
12 /// A macro that creates a projection type covering all the fields of struct.
13 ///
14 /// This macro creates a projection type according to the following rules:
15