diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -275,13 +275,10 @@ //! //! Users should generally avoid defining a flag with a value of zero. -#![cfg_attr(not(test), no_std)] +// ANDROID: Use std to allow building as a dylib. +#![cfg_attr(not(any(test, android_dylib)), no_std)] #![doc(html_root_url = "https://docs.rs/bitflags/1.3.2")] -// ANDROID: Unconditionally use std to allow building as a dylib -#[macro_use] -extern crate std; - #[doc(hidden)] pub extern crate core as _core; |