diff --git a/io/src/lib.rs b/io/src/lib.rs index 2b8008f1..49862308 100644 --- a/io/src/lib.rs +++ b/io/src/lib.rs @@ -13,9 +13,9 @@ //! This traits are not one-for-one drop-ins, but are as close as possible while still implementing //! `std::io`'s traits without unnecessary complexity. +#![cfg_attr(not(feature = "std"), no_std)] // Experimental features we need. #![cfg_attr(docsrs, feature(doc_auto_cfg))] -#![cfg_attr(not(feature = "std"), no_std)] #[cfg(any(feature = "alloc", feature = "std"))] extern crate alloc;