chore(deps): update rust crate serde-saphyr to 0.0.21 #1437

Merged
Jade merged 1 commit from renovate/rust-patch-updates into main 2026-03-09 13:26:24 +00:00
Collaborator

This PR contains the following updates:

Package Type Update Change
serde-saphyr workspace.dependencies patch 0.0.190.0.21

Release Notes

bourumir-wyngs/serde-saphyr (serde-saphyr)

v0.0.21: Tuple enum variants and more compact lists.

Compare Source

Tuple enum variants, #​85

It is now possible to deserialize tuple enum variants, using tags to choose the variant. This is compatible with serde_yaml and serde_yaml_ng.


#[derive(Debug, PartialEq, Eq, Deserialize)]
pub enum Value {
  Expression(String),
  Pair(String, i32),
}

#[derive(Debug, PartialEq, Eq, Deserialize)]
pub struct Context {
    value: Value,
}

serde_saphyr::from_str::<Context>(yaml) would take the value: !Expression 1 + 1 or value: !Pair [a, 12]. Nesting using Variant:\n ... already worked, but that syntax is inconvenient for short scalars that would otherwise fit on a single line.

Tuple members can differ in type, so Rust tuple agrees with YAML list here better than Rust list or array.

Compact list indentation, #​86

We now emit list items with a more compact indentation style:

      containers:
      - env:
        - name: METHOD
          value: WATCH

Compared to a more expanded indentation style:

      containers:
        - env:
            - name: METHOD
              value: WATCH

Round trip tests were added to check we still produce a valid YAML. This more compact format used to be default in serde-yaml. If the previous format is desired (like it there are tests with direct string comparison), it can be returned by setting compact_list_indent to false in SerializerOptions.

v0.0.20: Maintenance release - coverage

Compare Source

In this release, we primarily focused on improving code coverage. While adding more tests, we uncovered a couple of bugs. Although these are edge cases, we decided to publish a new release.

  • Fixed parsing of numeric values with the !!str tag into weakly typed structures such as serde_json::Value.
  • Fixed Spanned to work correctly with serde flatten, untagged, and internally/adjacently tagged representations without errors. Location information is preserved when possible; otherwise, it is set to unknown. Tests were updated accordingly.
  • Code coverage is now tracked automatically (codecov badge added). There are also Mac and Windows tests now as well that might catch subtle cases relevant to line endings.

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.


  • 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-saphyr](https://github.com/bourumir-wyngs/serde-saphyr) | workspace.dependencies | patch | `0.0.19` → `0.0.21` | --- ### Release Notes <details> <summary>bourumir-wyngs/serde-saphyr (serde-saphyr)</summary> ### [`v0.0.21`](https://github.com/bourumir-wyngs/serde-saphyr/releases/tag/0.0.21): Tuple enum variants and more compact lists. [Compare Source](https://github.com/bourumir-wyngs/serde-saphyr/compare/0.0.20...0.0.21) #### Tuple enum variants, [#&#8203;85](https://github.com/bourumir-wyngs/serde-saphyr/issues/85) It is now possible to deserialize tuple enum variants, using tags to choose the variant. This is compatible with serde\_yaml and serde\_yaml\_ng. ```rust #[derive(Debug, PartialEq, Eq, Deserialize)] pub enum Value { Expression(String), Pair(String, i32), } #[derive(Debug, PartialEq, Eq, Deserialize)] pub struct Context { value: Value, } ``` `serde_saphyr::from_str::<Context>(yaml)` would take the `value: !Expression 1 + 1` or `value: !Pair [a, 12]`. Nesting using Variant:\n ... already worked, but that syntax is inconvenient for short scalars that would otherwise fit on a single line. Tuple members can differ in type, so Rust tuple agrees with YAML list here better than Rust list or array. #### Compact list indentation, [#&#8203;86](https://github.com/bourumir-wyngs/serde-saphyr/issues/86) We now emit list items with a more compact indentation style: ```yaml containers: - env: - name: METHOD value: WATCH ``` Compared to a more expanded indentation style: ```yaml containers: - env: - name: METHOD value: WATCH ``` Round trip tests were added to check we still produce a valid YAML. This more compact format used to be default in serde-yaml. If the previous format is desired (like it there are tests with direct string comparison), it can be returned by setting compact\_list\_indent to false in SerializerOptions. ### [`v0.0.20`](https://github.com/bourumir-wyngs/serde-saphyr/releases/tag/0.0.20): Maintenance release - coverage [Compare Source](https://github.com/bourumir-wyngs/serde-saphyr/compare/0.0.19...0.0.20) In this release, we primarily focused on improving code coverage. While adding more tests, we uncovered a couple of bugs. Although these are edge cases, we decided to publish a new release. - Fixed parsing of numeric values with the !!str tag into weakly typed structures such as serde\_json::Value. - Fixed Spanned<T> to work correctly with serde flatten, untagged, and internally/adjacently tagged representations without errors. Location information is preserved when possible; otherwise, it is set to unknown. Tests were updated accordingly. - Code coverage is now tracked automatically (*codecov* badge added). There are also Mac and Windows tests now as well that might catch subtle cases relevant to line endings. </details> --- ### 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. --- - [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiI0Mi43MC4yIiwidXBkYXRlZEluVmVyIjoiNDMuNTkuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiRGVwZW5kZW5jaWVzIiwiRGVwZW5kZW5jaWVzL1Jlbm92YXRlIl19-->
chore(deps): update rust-patch-updates
Some checks failed
renovate/artifacts Artifact file update failure
Update flake hashes / update-flake-hashes (pull_request) Successful in 24s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m52s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m45s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 17m22s
03f7119421
renovate force-pushed renovate/rust-patch-updates from 03f7119421
Some checks failed
renovate/artifacts Artifact file update failure
Update flake hashes / update-flake-hashes (pull_request) Successful in 24s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m52s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m45s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 17m22s
to faadda3424
Some checks failed
renovate/artifacts Artifact file update failure
Update flake hashes / update-flake-hashes (pull_request) Successful in 25s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m34s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 3m42s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 32m22s
2026-02-24 05:03:03 +00:00
Compare
renovate force-pushed renovate/rust-patch-updates from faadda3424
Some checks failed
renovate/artifacts Artifact file update failure
Update flake hashes / update-flake-hashes (pull_request) Successful in 25s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m34s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 3m42s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 32m22s
to 37be41b19c
Some checks failed
renovate/artifacts Artifact file update failure
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m43s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 4m30s
Update flake hashes / update-flake-hashes (pull_request) Successful in 3m1s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 39m7s
2026-02-25 07:24:46 +00:00
Compare
renovate force-pushed renovate/rust-patch-updates from 37be41b19c
Some checks failed
renovate/artifacts Artifact file update failure
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m43s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 4m30s
Update flake hashes / update-flake-hashes (pull_request) Successful in 3m1s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 39m7s
to a62ad4f89d
Some checks failed
renovate/artifacts Artifact file update failure
Update flake hashes / update-flake-hashes (pull_request) Successful in 24s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m55s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 5m46s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 22m4s
2026-02-28 05:03:15 +00:00
Compare
renovate force-pushed renovate/rust-patch-updates from a62ad4f89d
Some checks failed
renovate/artifacts Artifact file update failure
Update flake hashes / update-flake-hashes (pull_request) Successful in 24s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m55s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 5m46s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 22m4s
to 26b0f91ffa
Some checks failed
renovate/artifacts Artifact file update failure
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m12s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 3m20s
Update flake hashes / update-flake-hashes (pull_request) Successful in 1m14s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 41m35s
2026-03-04 05:03:02 +00:00
Compare
renovate force-pushed renovate/rust-patch-updates from 26b0f91ffa
Some checks failed
renovate/artifacts Artifact file update failure
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m12s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 3m20s
Update flake hashes / update-flake-hashes (pull_request) Successful in 1m14s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 41m35s
to 23c8ad6981
Some checks failed
renovate/artifacts Artifact file update failure
Update flake hashes / update-flake-hashes (pull_request) Successful in 26s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m57s
Documentation / Build and Deploy Documentation (pull_request) Successful in 4m27s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 44m17s
2026-03-06 05:06:23 +00:00
Compare
renovate force-pushed renovate/rust-patch-updates from 23c8ad6981
Some checks failed
renovate/artifacts Artifact file update failure
Update flake hashes / update-flake-hashes (pull_request) Successful in 26s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m57s
Documentation / Build and Deploy Documentation (pull_request) Successful in 4m27s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 44m17s
to 92c577243d
Some checks failed
renovate/artifacts Artifact file update failure
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m15s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m41s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 6m25s
Update flake hashes / update-flake-hashes (pull_request) Successful in 49s
2026-03-08 13:10:42 +00:00
Compare
renovate force-pushed renovate/rust-patch-updates from 92c577243d
Some checks failed
renovate/artifacts Artifact file update failure
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m15s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m41s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 6m25s
Update flake hashes / update-flake-hashes (pull_request) Successful in 49s
to e6952a73c6
Some checks failed
renovate/artifacts Artifact file update failure
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m15s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m57s
Update flake hashes / update-flake-hashes (pull_request) Successful in 46s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 3m39s
2026-03-08 14:52:17 +00:00
Compare
renovate force-pushed renovate/rust-patch-updates from e6952a73c6
Some checks failed
renovate/artifacts Artifact file update failure
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m15s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m57s
Update flake hashes / update-flake-hashes (pull_request) Successful in 46s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 3m39s
to f9e756658f
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m19s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 3m2s
Update flake hashes / update-flake-hashes (pull_request) Successful in 49s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 23m0s
2026-03-09 13:01:26 +00:00
Compare
renovate changed title from chore(deps): update rust-patch-updates to chore(deps): update rust crate serde-saphyr to 0.0.21 2026-03-09 13:01:26 +00:00
Jade merged commit 85b2fd91b9 into main 2026-03-09 13:26:24 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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
continuwuation/continuwuity!1437
No description provided.