Skip to content

Add support for unstable core::range types Range, RangeFrom, and RangeInclusive#3031

Open
angeld23 wants to merge 1 commit intoserde-rs:masterfrom
angeld23:master
Open

Add support for unstable core::range types Range, RangeFrom, and RangeInclusive#3031
angeld23 wants to merge 1 commit intoserde-rs:masterfrom
angeld23:master

Conversation

@angeld23
Copy link
Copy Markdown

@angeld23 angeld23 commented Feb 1, 2026

Closes #3004

Deserialization for a range type uses its stable counterpart's deserialize followed by .into() since that seemed the simplest way to go about it.
Serialized ranges are identical and can be deserialized into either one.
This change enables new_range_api in serde_core when the unstable feature is enabled. I think this would require updating #812?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Support nightly feature std::range::Range

1 participant