Skip to content

Update Rust crate serde_with to 3.3.0

Renovate Bot requested to merge renovate/serde_with-3.x into main

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

Compare Source

Added
  • Support the hashbrown type HashMap and HashSet (#​636, #​637) Thanks to @​OliverNChalk for raising the issue and submitting a MR.

    This extends the existing support for HashMaps and HashSets to the hashbrown crate v0.14. The same conversions as for the std and indexmap types are available, like general support for #[serde_as] and converting it to/from sequences or maps.

Changed
  • Generalize some trait bounds for DeserializeAs implementations

    While 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.0

Compare Source

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 the indexmap_2 feature.
Changed
  • Bump MSRV to 1.64, since that is required for the indexmap v2 dependency.
Fixed
  • Prevent panics when deserializing i64::MIN using TimestampSeconds<i64> (#​632, #​633) Thanks to @​hollmmax for reporting and fixing the issue.

v3.1.0: serde_with v3.1.0

Compare Source

Added
  • Add FromIntoRef and TryFromIntoRef (#​618) Thanks to @​oblique for submitting the MR.

    The new types are similar to the existing FromInto and TryFromInto types. They behave different during serialization, allowing the removal of the Clone bound on their SerializeAs 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

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports