Skip to content

build(deps): bump serde-saphyr from 1.3.0 to 2.0.0 - #19306

Merged
fdncred merged 1 commit into
mainfrom
dependabot/cargo/serde-saphyr-2.0.0
Oct 21, 2026
Merged

fdncred merged 1 commit into
mainfrom
dependabot/cargo/serde-saphyr-2.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Bumps serde-saphyr from 1.3.0 to 2.0.0.

Release notes

Sourced from serde-saphyr's releases.

2.0.0 Performance and compliance release

Breaking changes

  • There is a new capture_comments feature that is default on and can be disabled, winning about 10 % percent of performance. This feature was the main reason to advance the first version digit, because formally this is a breaking change.
  • Preserving inner error in alias errors in the newly added field in AliasError. The old field (text representation) is still present, but deprecated. Another formally breaking change, even if unlikely to be a problem.
  • from_multiple, from_multiple_with_options, from_slice_multiple, and from_slice_multiple_with_options now accept T: Deserialize<'de> instead of T: DeserializeOwned, allowing values to borrow from the input. Direct calls require no changes. Function pointers or callbacks may need adjustments.
  • granit_parser 2.0.0 has some corner formally breaking changes, but mostly in very obscure parts (see its changelog for details).

All other changes are backward compatible:

  • For projects aiming for very strict YAML compliance rather than drop-in compatibility with mainstream libraries, it is not possible to disable all compromises with strict_indentation flag in Options.
  • Value serialization target can now receive Inf and NaN if so configured. Even if most common serde_json::Value cannot take them (produces null instead), many other abstract value receivers can.
  • Made huge_documents and serde_derived_types enable deserialize, fixing isolated feature builds with --no-default-features, including autopkgtests of Debian team (as observed).
  • Fix borrow support for untagged enum (PR #195, thanks @​Guiguiprim ).
  • Added SerializerOptions::no_lang_directive (default false) to suppress the %YAML 1.2 directive independently of yaml_12's quoting (requirement obvious from Nushell code work work arrounds).
  • Property interpolation can now be configured to be fully Docker Compose compliant if preferred (we are not fans of undefined property defaulting to empty but may be opinion-based).
  • It is possible to deserialize multiple documents into collection other than vector: serde_saphyr::from_str_multiple supports any collection implementing Default + Extend<T>, such as Vec<T>, VecDeque<T>, BTreeSet<T>, or custom storage like SmallVec<T>.

Other fixes

  • Keep span offsets relative to the caller's input after a BOM (#212)
  • Compare mapping keys regardless of entry order (#211)
  • Report a collection where &str is expected, not end of input (#210)
  • Replace non-printable characters in Commented comments (#209)
  • Implement dedicated YAML trim (#206). Default Rust trim() considers special Unicode whitespace chars that YAML calls to be ignored.
  • Improve multi-snippet error rendering (#208). Do not rely on error texts for functionallity.
  • Fix serializer indentation after - and ? so output reads back- #207
  • Report a parser error after an implicit document end in single-document entry points- #220 #220, thanks @​pcshrosbree
Changelog

Sourced from serde-saphyr's changelog.

2.0.0

YAML changes

  • Tags selecting unit enum variants now reject non-null payloads instead of silently discarding them (#236). Use a bare variant name, a tag with empty content, or a tag followed by ~ or null; quoted strings and collections are rejected.
  • Composite mapping keys are not compared regardless of entry order (thanks @​yuxi-liu-wired) .
  • Commented now writes its output replacing characters not allowed in comments (non printable) by spaces.

Added

  • Added public path_map::PathKind, PathKey::segments(), and PathMap::locations_for() for inspecting validation paths and resolving their YAML use/definition locations, including best-effort spelling matches and recorded ancestor/root fallback.
  • Added RenderOptions::line_offset and RenderOptions::source_name for displaying embedded YAML diagnostics at their containing document's line numbers and naming the root source in snippet headers, including the new miette::to_miette_report_with_options entry point. Included files retain their own names and coordinates, and stored error locations and spans are unchanged.
  • Added PropertySyntax::DockerCompose for Compose-compatible property interpolation.
  • Added the default-enabled comments feature, forwarding to granit-parser's matching feature. Builds with default-features = false must enable it to use Commented<T>, CommentPosition, comment options, or comment budget fields and reports. Without it, YAML comments are still accepted and validated, but their text is not retained.
  • Added Options::non_finite_float_policy with NonFiniteFloatPolicy::{PassThrough, Reject, AsString} to configure non-finite floats delivered through deserialize_any. Explicit policies override the legacy boolean; leaving the field unconfigured preserves its behavior.
  • Added the borrowed_context example showing recursive Serialize adapters that borrow an existing value tree and per-call formatting context, composing with Tagged<T> and style wrappers without building a second container tree or using thread-local state.
  • Added SerializerOptions::no_lang_directive (default false) to suppress the %YAML 1.2 directive and its leading --- marker independently of yaml_12's quoting.
  • Added from_str_multiple, from_bytes_multiple, and their _with_options variants to deserialize multiple YAML documents into any C: Default + Extend<T>, including vectors, queues, sets, and custom accumulators. Values can borrow from the input string or UTF-8 byte slice. Explicit type arguments specify both the document and collection types, for example from_str_multiple::<String, Vec<_>>(input).
  • Added an error: Box<Error> field to Error::AliasError, which keeps the original error when an aliased value fails to deserialize. A custom MessageFormatter or Localizer now applies to that error, and std::error::Error::source returns it (#199).

Changed

  • Breaking: from_multiple, from_multiple_with_options, from_slice_multiple, and from_slice_multiple_with_options now accept T: Deserialize<'de> so values can borrow from the input. They retain their names, single type parameter, and Vec<T> returns and are not deprecated. Ordinary calls, including from_multiple::<Config>(input) and generic callers with T: DeserializeOwned, continue to work. Function pointers or callbacks accepting arbitrary input lifetimes may need forwarding closures, such as |input| from_multiple::<String>(input).

... (truncated)

Commits
  • e3a4566 Clarified borrowing usage and fixed borrowing test.
  • fc4c875 Merge remote-tracking branch 'origin/master'
  • e2f8eb3 Make fuzz and miri mandatory steps for release workflow. use granit-parser fr...
  • 9728ccb Report a parser error after an implicit document end in single-document entry...
  • fb50b1b Improve documentation
  • f3f3786 Improve documentation
  • d43a925 Removed some too aggressive deprecations, this is not required with the major...
  • 2db1993 bw/i205 (#215)
  • c09c094 Bump granit-parser from 03889c5 to f4bf73a (#216)
  • 70272b7 Update cargo to use granit parser 2.0.0
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies (Dependabot label) Pull requests that update a dependency file rust (Dependabot label) Pull requests that update Rust code labels Oct 21, 2026
fdncred added a commit that referenced this pull request Oct 21, 2026
<!--
Thanks for contributing to Nushell!

Before submitting, please read the contributing guide:
https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md

This template helps reviewers understand your changes and allows us to
generate high-quality release notes.
-->

## Description

The `Security audit` job fails on every PR that touches `Cargo.toml` or
`Cargo.lock` (for example #19306). The advisory database now flags three
crates for CVE-2026-111943. Their certificate checks can accept chains
through emSign intermediates whose private keys have leaked. Each crate
has a patched release, so this PR moves all three to it:

| Crate | Old | New | Advisory | Pulled in by |
| --- | --- | --- | --- | --- |
| `rustls-webpki` | 0.103.15 | 0.103.16 | RUSTSEC-2026-0382 | `rustls`
(all TLS connections) |
| `webpki-roots` | 1.0.9 | 1.0.10 | RUSTSEC-2026-0381 | `nu-command`
(direct workspace dependency) |
| `webpki-root-certs` | 1.0.6 | 1.0.10 | RUSTSEC-2026-0383 |
`rustls-platform-verifier` (wasm32 only) |

`webpki-roots` is a direct workspace dependency, so `Cargo.toml` now
requires the patched `1.0.10` instead of only pinning it in the
lockfile. The other two crates are transitive, so only `Cargo.lock`
changes for them (`cargo update -p rustls-webpki -p webpki-roots -p
webpki-root-certs`). Nothing else in the lockfile moves.

<!--
Explain what this PR does and why.

This section is intentionally flexible:
- Describe the problem
- Explain your approach
- Include technical details if relevant

Good examples:
- "In this PR, I fixed..."
- "In this PR, I added support for..."
- "This change improves X by..."

Write as much or as little as needed for reviewers to understand your
changes.
-->

## User-facing changes (Release notes)

- Bumped `rustls-webpki`, `webpki-roots` and `webpki-root-certs` for
CVE-2026-111943 (distrusted emSign intermediates).

<!--
This section is used (mostly as-is) for https://www.nushell.sh/blog/

Describe how Nushell behavior changes from a user's perspective.
Do NOT describe internal Rust changes here.

Write in a release note style, for example:
- "Added support for..."
- "Fixed an issue where..."
- "Nushell now supports..."
- "Improved performance of..."

If your changes do NOT affect users (internal refactors, cleanup, etc.),
just write:
- "n/a"
- "nan"
- or similar

This tells us the change should not appear in the changelog.

Tips:
- Focus on observable behavior
- Include examples if helpful
- Keep it concise

You can:
- Write a short paragraph (will appear as a bullet point), OR
- Use headings (###) if your change needs more structure

Avoid writing things like:
- "In this PR, I refactored..."
- "This updates internal code..."

You may leave this blank until the PR is ready.
-->

## Additional notes

- `cargo audit` 0.22.2 (advisory database of 2026-10-21) on main's
`Cargo.lock`: 3 vulnerabilities, exit 1. On this branch: 0
vulnerabilities, exit 0.
- `cargo audit` still warns that `bincode` (RUSTSEC-2025-0141) and
`yaml-rust` (RUSTSEC-2024-0320) are unmaintained, the same as on main.
These warnings are informational, so the job does not fail on them.
- CI's clippy step (`clippy --workspace --all-targets --profile ci -- -D
warnings` with `.cargo/ci.toml`, plugins included) and `cargo nuclippy`
both pass on macOS.
<!--
Optional.

Examples:
- fixes #123
- closes #456
- related #789

Anything else reviewers should know.
Remove this section if not needed.
-->
@fdncred

fdncred commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/cargo/serde-saphyr-2.0.0 branch from 9af9d12 to dc9fb5f Compare October 21, 2026 11:26
@fdncred
fdncred merged commit 2d2108d into main Oct 21, 2026
12 checks passed
@fdncred
fdncred deleted the dependabot/cargo/serde-saphyr-2.0.0 branch October 21, 2026 13:07
@github-actions github-actions Bot added this to the v0.117.0 milestone Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies (Dependabot label) Pull requests that update a dependency file rust (Dependabot label) Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant