formats: the crate doc calls two implemented modules planned #391

Open
qnjk wants to merge 1 commit from qnjk/Darner:formats-lib-doc into Main
Contributor

Contributor role (optional)

  • Fluxer ID:

What it changes

  • The problem on main: the crate root of darner-formats promised BCPack, XMA2 and the hardware-decompression zlib streams as Planned, four lines above pub mod bcpack; and pub mod xma;. Both are among the crate's largest modules and carry their own docs (bcpack.rs:1: 'lossless packing of BC1-BC7 block streams ... decode only, BC1 through BC7'; xma.rs:1-2: 'XMA2, the console's hardware audio codec'). A contributor reading the front page was told the two codecs did not exist yet, which is the kind of first-page statement that makes someone re-implement one or look for the 'real' module elsewhere.

  • This change describes bcpack and xma where they are and leaves only Opus and the zlib streams planned. Documentation only: no line of code changes.

How it was tested

  • Tested revision: 9766e7a (one commit on f3840d7).
  • cargo test --locked -p darner-formats --lib: 87 passed, 0 failed, 7 ignored.
  • cargo doc --locked -p darner-formats --no-deps: builds with no warnings, so both intra-doc links resolve.
  • cargo xtask policy: 555 files ok.
  • Changes a default: no. A/B: not applicable, documentation only.
  • Gates: both clippy gates pass on this revision; gate 3 is not green on this machine because of three pre-existing darner-gpu/darner-shader failures that are covered by open pull requests #150, #224 and #227, none of which this touches.

Checklist

  • Documentation only, so it needs no gameplay run.
  • One change based on main.
  • Follows docs/asset-policy.md.
  • Depends on: none

Checked for overlap

  • Searched the open pull requests for the files this touches.
  • Related PRs: none changes crates/darner-formats/src/lib.rs (checked against the file list of all 161 open pull requests).
  • Replaces or overlaps: none found
## Contributor role (optional) - Fluxer ID: ## What it changes - The problem on main: the crate root of `darner-formats` promised BCPack, XMA2 and the hardware-decompression zlib streams as `Planned`, four lines above `pub mod bcpack;` and `pub mod xma;`. Both are among the crate's largest modules and carry their own docs (`bcpack.rs:1`: 'lossless packing of BC1-BC7 block streams ... decode only, BC1 through BC7'; `xma.rs:1-2`: 'XMA2, the console's hardware audio codec'). A contributor reading the front page was told the two codecs did not exist yet, which is the kind of first-page statement that makes someone re-implement one or look for the 'real' module elsewhere. - This change describes `bcpack` and `xma` where they are and leaves only Opus and the zlib streams planned. Documentation only: no line of code changes. ## How it was tested - Tested revision: `9766e7a` (one commit on `f3840d7`). - `cargo test --locked -p darner-formats --lib`: 87 passed, 0 failed, 7 ignored. - `cargo doc --locked -p darner-formats --no-deps`: builds with no warnings, so both intra-doc links resolve. - `cargo xtask policy`: 555 files ok. - Changes a default: no. A/B: not applicable, documentation only. - Gates: both clippy gates pass on this revision; gate 3 is not green on this machine because of three pre-existing `darner-gpu`/`darner-shader` failures that are covered by open pull requests #150, #224 and #227, none of which this touches. ## Checklist - [x] Documentation only, so it needs no gameplay run. - [x] One change based on `main`. - [x] Follows `docs/asset-policy.md`. - [x] Depends on: none ## Checked for overlap - [x] Searched the open pull requests for the files this touches. - Related PRs: none changes `crates/darner-formats/src/lib.rs` (checked against the file list of all 161 open pull requests). - Replaces or overlaps: none found
The crate root promised BCPack, XMA2 audio and the zlib streams as
"Planned", four lines above `pub mod bcpack;` and `pub mod xma;`. Both
are among the crate's largest modules (146 KB and 87 KB, with their own
"decode only, BC1 through BC7" and "XMA2, the console's hardware audio
codec" docs), so a contributor reading the front page was told the
codecs did not exist yet.

The two are described as they are and only Opus and the zlib streams
stay planned.
TrustNo1 changed title from [pr-docs][rendering] formats: the crate doc calls two implemented modules planned to formats: the crate doc calls two implemented modules planned 2026-12-06 03:29:36 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'formats-lib-doc:qnjk-formats-lib-doc'
git switch 'qnjk-formats-lib-doc'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'Main'
git merge --no-ff 'qnjk-formats-lib-doc'
git switch 'qnjk-formats-lib-doc'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'qnjk-formats-lib-doc'
git switch 'qnjk-formats-lib-doc'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'qnjk-formats-lib-doc'
git switch 'Main'
git merge --squash 'qnjk-formats-lib-doc'
git switch 'Main'
git merge --ff-only 'qnjk-formats-lib-doc'
git switch 'Main'
git merge 'qnjk-formats-lib-doc'
git push origin 'Main'
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
TrustNo1/Darner!391
No description provided.