Skip to content

refactor: add exact current-format writers - #8022

Draft
Xuanwo wants to merge 3 commits into
xuanwo/exact-version-stack-04-encoding-mechanismsfrom
xuanwo/exact-version-stack-05-file-runtime
Draft

refactor: add exact current-format writers#8022
Xuanwo wants to merge 3 commits into
xuanwo/exact-version-stack-04-encoding-mechanismsfrom
xuanwo/exact-version-stack-05-file-runtime

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Part 5/12 of #7877. Depends on #8021.

This is an independently reviewable step toward the final layout demonstrated in #7979.

This PR adds writer implementations owned by versions::v2_0, versions::v2_1, versions::v2_2, and versions::v2_3. Each exact version composes the mechanisms it supports; genuinely shared structural machinery remains under the version-neutral writer module.

Some composition code is intentionally repeated across adjacent versions. That repetition is the isolation boundary: changing a newer version must not silently change an older version. Public writer dispatch is left unchanged in this step and is activated by the next PR.

Validation:

  • exact-version writer compatibility fixtures
  • cargo clippy --all --tests --benches -- -D warnings
  • cargo fmt --all -- --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-encoding Encoding, IO, file reader/writer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant