1 diff --git a/src/lib.rs b/src/lib.rs 2 index 6ec2021e..785c42ec 100644 3 --- a/src/lib.rs 4 +++ b/src/lib.rs 5 @@ -137,6 +137,10 @@ pin-project supports this. 6 clippy::undocumented_unsafe_blocks, 7 )] 8 9 +// ANDROID: Use std to allow building as a dylib. 10 +#[cfg(android_dylib)] 11 +extern crate std; 12 + 13 /// A macro that creates a projection type covering all the fields of struct. 14 /// 15 /// This macro creates a projection type according to the following rules: 16