Update Rust crate serde_with to 2.2.0 #12
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/serde_with-2.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
2.0.1
->2.2.0
Release Notes
jonasbb/serde_with
v2.2.0
: serde_with v2.2.0Compare Source
Added
Add new
Map
andSeq
types for converting between maps and tuple lists. (#527)The behavior is not new, but already present using
BTreeMap
/HashMap
orVec
.However, the new types
Map
andSeq
are also available onno_std
, even without thealloc
feature.Changed
serde_with_macros
dependency to the same version as the main crate.This simplifies publishing and ensures that always a compatible version is picked.
Fixed
serde_with::apply
had an issue matching types when invisible token groups where in use (#538)The token groups can stem from macro_rules expansion, but should be treated mostly transparent.
The old code required a group to match a group, while now groups are silently removed when checking for type patterns.
v2.1.0
: serde_with v2.1.0Compare Source
Added
Add new
apply
attribute to simplify repetitive attributes over many fields.Multiple rules and multiple attributes can be provided each.
The
apply
attribute will expand into this, applying the attributs to the matching fields:The attribute supports field matching using many rules, such as
_
to apply to all fields and partial generics likeOption
to match anyOption
be itOption<String>
,Option<bool>
, orOption<T>
.Fixed
The derive macros
SerializeDisplay
andDeserializeFromStr
now take better care not to use conflicting names for generic values. (#526)All used generics now start with
__
to make conflicts with manually written code unlikely.Thanks to @Elrendio for submitting a PR fixing the issue.
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 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.
Update Rust crate serde_with to 2.1.0to Update Rust crate serde_with to 2.2.07b7ca7f2ac
to37c78c5256
37c78c5256
tod76b60a858