Skip to content

fix(deps): replace the unmaintained YAML parser blocking CI #2278

Closed

Description

@inureyes

Problem

The CUDA implementation batch cannot pass CI because cargo-deny rejects unsafe-libyaml 0.2.11 under RUSTSEC-2024-0449. The dependency is already present on main through the two direct serde_yaml 0.9 dependencies. CI run 38258626808 fails only this advisory check; its other checks pass.

Required change

Replace the unmaintained YAML parser dependency in the CLI and surgery crate with a maintained safe-Rust parser such as serde-saphyr, without suppressing the advisory. Preserve the existing language-bias and surgery configuration contracts, including ordered entries, duplicate-key rejection, DuplicateLanguageCode reporting, supported numeric syntax, enum representations, and existing example files. Parser implementation types do not appear in public APIs.

Acceptance criteria

  • serde_yaml and unsafe-libyaml are absent from the resolved workspace dependency graph.
  • Existing language-bias and surgery configuration tests and configuration examples remain valid.
  • Duplicate language codes retain their specific CLI error; duplicate top-level fields are still rejected.
  • Formatting, focused tests, Clippy, and cargo deny check pass.
  • The PR documents any deliberate compatibility change rather than silently changing parser behavior.

Evidence

This is a shared CI prerequisite discovered while validating #2142 and #1784; it does not change their implementation scope.

Activity

  1. added
    type:bugBug fixes, error corrections, or issue resolutions
    and removed on Oct 12, 2026
  2. added 3 commits that reference this issue on Oct 12, 2026
    fc45284
    9e24473
    4db2e6f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:highHigh prioritystatus:doneCompletedtype:bugBug fixes, error corrections, or issue resolutions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions