Update Rust crate serde_with to v3 #4640
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.3.3
->3.4.0
Release Notes
jonasbb/serde_with (serde_with)
v3.4.0
: serde_with v3.4.0Compare Source
Lower minimum required serde version to 1.0.152 (#653)
Thanks to @banool for submitting the PR.
This allows people that have a problem with 1.0.153 to still use
serde_with
.Add support for
core::ops::Bound
(#655)Thanks to @qsantos for submitting the PR.
v3.3.0
: serde_with v3.3.0Compare Source
Added
Support the
hashbrown
typeHashMap
andHashSet
(#636, #637)Thanks to @OliverNChalk for raising the issue and submitting a PR.
This extends the existing support for
HashMap
s andHashSet
s to thehashbrown
crate v0.14.The same conversions as for the
std
andindexmap
types are available, like general support for#[serde_as]
and converting it to/from sequences or maps.Changed
Generalize some trait bounds for
DeserializeAs
implementationsWhile working on #637 it came to light that some of the macros for generating
DeserializeAs
implementations were not as generic as they could.This means they didn't work with custom hasher types, but only the default hashers.
This has now been fixed and custom hashers should work better, as long as they implement
BuildHasher + Default
.(internal) Change how features are documented (#639)
This change moves the feature documentation into
Cargo.toml
in a format that can be read by lib.rs.It will improve the generated features documentation there.
The page with all features remains in the guide but is now generated from the
Cargo.toml
information.v3.2.0
: serde_with v3.2.0Compare Source
Added
Support for v1 is already available using the
indexmap_1
feature.This adds identical support for v2 of indexmap using the
indexmap_2
feature.Changed
Fixed
i64::MIN
usingTimestampSeconds<i64>
(#632, #633)Thanks to @hollmmax for reporting and fixing the issue.
v3.1.0
: serde_with v3.1.0Compare Source
Added
Add
FromIntoRef
andTryFromIntoRef
(#618)Thanks to @oblique for submitting the PR.
The new types are similar to the existing
FromInto
andTryFromInto
types.They behave different during serialization, allowing the removal of the
Clone
bound on theirSerializeAs
trait implementationChanged
serde_as
(#607)cfg_eval
.v3.0.0
: serde_with v3.0.0Compare Source
This breaking release should not impact most users.
It only affects custom character sets used for base64 of which there are no instances of on GitHub.
Changed
Upgrade base64 to v0.21 (#543)
Thanks to @jeff-hiner for submitting the PR.
Remove support for custom character sets.
This is technically a breaking change.
A code search on GitHub revealed no instances of anyone using that, and
serde_with
ships with many predefined character sets.The removal means that future base64 upgrade will no longer be breaking changes.
Configuration
📅 Schedule: Branch creation - "after 8pm,before 6am" in timezone America/Los_Angeles, Automerge - "after 8pm,before 6am" in timezone America/Los_Angeles.
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.