1 2--- 3 src/lib.rs | 4 ++++ 4 1 file changed, 4 insertions(+) 5 6diff --git b/src/lib.rs a/src/lib.rs 7index 71139385..a0a0372d 100644 8--- b/src/lib.rs 9+++ a/src/lib.rs 10@@ -24,6 +24,10 @@ 11 #![cfg_attr(feature = "rustc-dep-of-std", no_core)] 12 #![cfg_attr(libc_const_extern_fn_unstable, feature(const_extern_fn))] 13 14+// ANDROID: Use std to allow building as a dylib. 15+#[cfg(android_dylib)] 16+extern crate std; 17+ 18 #[macro_use] 19 mod macros; 20 21