1 2 3 4 5 6 7 8 9
#[cfg(not(any(feature = "std", feature = "alloc")))] compile_error!("expected either `std` or `alloc` to be enabled"); #[cfg(all(not(feature = "std"), feature = "alloc"))] use alloc::string::String; use crate::impl_identity; impl_identity!(String);