Update Rust crate serde_with to 3.3.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
serde_with | dependencies | minor |
3.0.0 -> 3.3.0
|
Release Notes
jonasbb/serde_with (serde_with)
v3.3.0
: serde_with v3.3.0
Added
-
Support the
hashbrown
typeHashMap
andHashSet
(#636, #637) Thanks to @OliverNChalk for raising the issue and submitting a MR.This extends the existing support for
HashMap
s andHashSet
s to thehashbrown
crate v0.14. The same conversions as for thestd
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 implementBuildHasher + 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 theCargo.toml
information.
v3.2.0
: serde_with v3.2.0
Added
- Add optional support for indexmap v2 (#621)
Support for v1 is already available using the
indexmap_1
feature. This adds identical support for v2 of indexmap using theindexmap_2
feature.
Changed
- Bump MSRV to 1.64, since that is required for the indexmap v2 dependency.
Fixed
- Prevent panics when deserializing
i64::MIN
usingTimestampSeconds<i64>
(#632, #633) Thanks to @hollmmax for reporting and fixing the issue.
v3.1.0
: serde_with v3.1.0
Added
-
Add
FromIntoRef
andTryFromIntoRef
(#618) Thanks to @oblique for submitting the MR.The new types are similar to the existing
FromInto
andTryFromInto
types. They behave different during serialization, allowing the removal of theClone
bound on theirSerializeAs
trait implementation
Changed
- Improve documentation about cfg-gating
serde_as
(#607) - Bump MSRV to 1.61 because that is required by the crate
cfg_eval
.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.