Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Rewrite facet-yaml with saphyr-parser streaming YAML parser - #19

Merged
fasterthanlime merged 1 commit into
mainfrom
all-the-things
Nov 27, 2025
Merged

fasterthanlime merged 1 commit into
mainfrom
all-the-things

Conversation

@fasterthanlime

Copy link
Copy Markdown
Contributor

Major refactoring of facet-yaml to use a streaming event-based parser:

  • Replace yaml-rust2 with saphyr-parser for YAML 1.2 streaming support
  • Remove facet-serialize dependency, use facet-reflect Peek API directly
  • Implement OwnedEvent for storing parsed events with owned strings
  • Add miette integration for rich error diagnostics with source spans
  • Support rename attributes on struct fields
  • Handle Arc<[T]> slice pointers correctly
  • Add explicit usize/isize type handling

All 60 tests passing.

Major refactoring of facet-yaml to use a streaming event-based parser:

- Replace yaml-rust2 with saphyr-parser for YAML 1.2 streaming support
- Remove facet-serialize dependency, use facet-reflect Peek API directly
- Implement OwnedEvent for storing parsed events with owned strings
- Add miette integration for rich error diagnostics with source spans
- Support rename attributes on struct fields
- Handle Arc<[T]> slice pointers correctly
- Add explicit usize/isize type handling

All 60 tests passing.
@fasterthanlime
fasterthanlime merged commit a28dd55 into main Nov 27, 2025
1 of 7 checks passed
@fasterthanlime
fasterthanlime deleted the all-the-things branch November 27, 2025 19:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant