diff --git a/serde/src/lib.rs b/serde/src/lib.rs index 2d7a4ff3..12632795 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -61,7 +61,8 @@ #![doc(html_root_url="https://docs.serde.rs")] #![cfg_attr(not(feature = "std"), no_std)] -#![cfg_attr(feature = "unstable", feature(nonzero, specialization, zero_one, into_boxed_c_str))] +#![cfg_attr(feature = "unstable", feature(nonzero, specialization, zero_one))] +#![cfg_attr(all(feature = "std", feature = "unstable"), feature(into_boxed_c_str))] #![cfg_attr(feature = "alloc", feature(alloc))] #![cfg_attr(feature = "collections", feature(collections))] #![cfg_attr(feature = "cargo-clippy", allow(linkedlist, type_complexity, doc_markdown))]