serde
serde copied to clipboard
Unstable functionality in Serde
Currently unstable
- [ ] Never type https://github.com/rust-lang/rust/issues/35121
- Serialize and Deserialize impls for
!
- Serialize and Deserialize impls for
Stabilized
- [x] Serialize and Deserialize for NonZero* https://github.com/rust-lang/rust/issues/49137
- Stabilized in 1.0.60 #1278
- [x] Deserialize for Box<CStr> https://github.com/rust-lang/rust/issues/40380
- Requires
CString::into_boxed_c_str - Stabilized in 1.0.61 #1284
- Requires
- [x] Deserialize for dynamically sized Rc / Arc https://github.com/rust-lang/rust/issues/40475
- Requires
From<Box<T>> for Rc<T> / Arc<T> - Stabilized in 1.0.61 #1285
- Requires
- [x] core::error::Error https://github.com/rust-lang/rust/issues/103765
- Stabilized in 1.0.210 #2818
Removed
- [x] Specialization https://github.com/rust-lang/rust/issues/31844
- The default collect_seq and collect_map used to specialize for ExactSizeIterator.
- Removed in #1841.
Feature zero_one just died. Can we have new versions on both 0.9 and 1.0?
Submitted https://github.com/serde-rs/serde/pull/898 for zero_one.
593bcb087de2d09960aefaccb67d5871ddf4edc8 breaks the unstable feature because you removed the nonzero feature flag which is still required by NonZeroU16 and friends.
The nonzero feature flag was removed from nightly in https://github.com/rust-lang/rust/pull/50808.
Thanks so much for the clarification, I didn't realize I was using an outdated nightly!
I updated the list to reflect functionality that was stabilized in Serde 1.0.60 and 1.0.61. These are no longer behind the "unstable" cfg.
Added never_type in #1302.
Added error_in_core in #2344.
Would it be appropriate to add support for Vec<T, A: Allocator>/Box<T, A: Allocator> under the unstable feature flag?
If so, I can submit a PR in some near future.
Error in core has been stabilized. Would it be appropriate to make StdError = core::error::Error when minor >= 81?