Update Rust crate serde_with to v3.9.0 #269

Merged
pierre merged 1 commits from renovate/serde_with-3.x-lockfile into master 2024-07-16 00:20:00 +00:00
Owner

This PR contains the following updates:

Package Type Update Change
serde_with dependencies minor 3.8.3 -> 3.9.0

Release Notes

jonasbb/serde_with (serde_with)

v3.9.0: serde_with v3.9.0

Compare Source

Added
  • Deserialize a map` and skip all elements failing to deserialize by @​johnmave126 (#​763)

    MapSkipError acts like a map (HashMap/BTreeMap), but keys or values that fail to deserialize, like are ignored.

    For formats with heterogeneously typed maps, we can collect only the elements where both key and value are deserializable.
    This is also useful in conjunction to #[serde(flatten)] to ignore some entries when capturing additional fields.

    // JSON
    "value": {"0": "v0", "5": "v5", "str": "str", "10": 2},
    
    // Rust
    #[serde_as(as = "MapSkipError<DisplayFromStr, _>")]
    value: BTreeMap<u32, String>,
    
    // Only deserializes entries with a numerical key and a string value, i.e.,
    {0 => "v0", 5 => "v5"}
    

Configuration

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

🚦 Automerge: Enabled.

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.


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

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [serde_with](https://github.com/jonasbb/serde_with) | dependencies | minor | `3.8.3` -> `3.9.0` | --- ### Release Notes <details> <summary>jonasbb/serde_with (serde_with)</summary> ### [`v3.9.0`](https://github.com/jonasbb/serde_with/releases/tag/v3.9.0): serde_with v3.9.0 [Compare Source](https://github.com/jonasbb/serde_with/compare/v3.8.3...v3.9.0) ##### Added - Deserialize a map\` and skip all elements failing to deserialize by [@&#8203;johnmave126](https://github.com/johnmave126) ([#&#8203;763](https://github.com/jonasbb/serde_with/issues/763)) `MapSkipError` acts like a map (`HashMap`/`BTreeMap`), but keys or values that fail to deserialize, like are ignored. For formats with heterogeneously typed maps, we can collect only the elements where both key and value are deserializable. This is also useful in conjunction to `#[serde(flatten)]` to ignore some entries when capturing additional fields. ```text // JSON "value": {"0": "v0", "5": "v5", "str": "str", "10": 2}, // Rust #[serde_as(as = "MapSkipError<DisplayFromStr, _>")] value: BTreeMap<u32, String>, // Only deserializes entries with a numerical key and a string value, i.e., {0 => "v0", 5 => "v5"} ``` </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQzMS43IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
pierre added 1 commit 2024-07-16 00:07:36 +00:00
Update Rust crate serde_with to v3.9.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
9594894a61
pierre scheduled this pull request to auto merge when all checks succeed 2024-07-16 00:07:37 +00:00
pierre merged commit 70a286f90d into master 2024-07-16 00:20:00 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: pierre/GeneIT#269
No description provided.