diff --git a/src/lib.rs b/src/lib.rs index 7fc6f1a..8abec35 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![cfg_attr(not(feature = "std"), no_std)] +#![no_std] #![warn( missing_debug_implementations, missing_docs, @@ -113,6 +113,8 @@ #[cfg(not(feature = "std"))] extern crate alloc; #[cfg(feature = "std")] +extern crate std; +#[cfg(feature = "std")] extern crate std as alloc; #[cfg(feature = "serde")]