1diff --git a/src/lib.rs b/src/lib.rs 2index c85fb01..25b0444 100644 3--- a/src/lib.rs 4+++ b/src/lib.rs 5@@ -56,7 +56,8 @@ 6 //! let checksum = crc16(checksum_range); 7 //! ``` 8 9-#![no_std] 10+// ANDROID: include standard library to build as a dylib 11+//#![no_std] 12 #![cfg_attr( 13 feature = "unstable_const", 14 feature( 15@@ -78,9 +79,9 @@ 16 #[doc(hidden)] 17 pub mod __priv { 18 #[doc(hidden)] 19- pub use core::mem; 20+ pub use std::mem; // ANDROID: use std instead of core, since we're not building with no-std. 21 #[doc(hidden)] 22- pub use core::ptr; 23+ pub use std::ptr; // ANDROID: use std instead of core, since we're not building with no-std. 24 25 /// Use type inference to obtain the size of the pointee (without actually using the pointer). 26 #[doc(hidden)] 27diff --git a/src/span_of.rs b/src/span_of.rs 28index 0592dbd..369e5c6 100644 29--- a/src/span_of.rs 30+++ b/src/span_of.rs 31@@ -155,7 +155,8 @@ macro_rules! span_of { 32 33 #[cfg(test)] 34 mod tests { 35- use core::mem; 36+ // ANDROID: use std instead of core, since we're not building wiht no-std. 37+ use std::mem; 38 39 #[test] 40 fn span_simple() {