serde icon indicating copy to clipboard operation
serde copied to clipboard

Unstable functionality in Serde

Open dtolnay opened this issue 8 years ago • 10 comments

Currently unstable

  • [ ] Never type https://github.com/rust-lang/rust/issues/35121
    • 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
  • [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
  • [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.

dtolnay avatar Mar 09 '17 05:03 dtolnay

Feature zero_one just died. Can we have new versions on both 0.9 and 1.0?

nox avatar Apr 23 '17 10:04 nox

Submitted https://github.com/serde-rs/serde/pull/898 for zero_one.

SimonSapin avatar Apr 23 '17 23:04 SimonSapin

593bcb087de2d09960aefaccb67d5871ddf4edc8 breaks the unstable feature because you removed the nonzero feature flag which is still required by NonZeroU16 and friends.

Techcable avatar May 21 '18 03:05 Techcable

The nonzero feature flag was removed from nightly in https://github.com/rust-lang/rust/pull/50808.

dtolnay avatar May 21 '18 03:05 dtolnay

Thanks so much for the clarification, I didn't realize I was using an outdated nightly!

Techcable avatar May 21 '18 03:05 Techcable

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.

dtolnay avatar May 27 '18 00:05 dtolnay

Added never_type in #1302.

dtolnay avatar Jun 03 '18 07:06 dtolnay

Added error_in_core in #2344.

dtolnay avatar Dec 16 '22 18:12 dtolnay

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.

gootorov avatar Jun 22 '23 08:06 gootorov

Error in core has been stabilized. Would it be appropriate to make StdError = core::error::Error when minor >= 81?

jdygert-spok avatar Sep 05 '24 18:09 jdygert-spok