Docs: rustdoc builds the loader, GPU and shader crates without warnings #675

Manually merged
github merged 1 commit from gh-pr/675/head into gh-pr/675/base 2026-11-26 04:12:35 +00:00
Owner

@⁠lameloball2813-ui on GitHub · 2026-11-24 06:39 UTC · original
lameloball2813-ui:docs/rustdoc-private-links → main · +4 −4 · 4 files · 1 commits · merged 2026-11-24 08:21 UTC

cargo doc --workspace --no-deps on main warns five times outside victory-formats:

Crate Where Warning
victory-loader lib.rs:7 prepare is both a function and a module (ambiguous link)
victory-gpu list.rs:9 public docs link to private crate::draw
victory-gpu shader_cache.rs:9 public docs link to private encode and decode
victory-shader emit/validator.rs:3 public docs link to private super::container::hash

The loader link now names the function ([prepare()]). The others name private items, which rustdoc can't link for readers of the public docs, so they stay as code without a link. The text is unchanged.

The one warning left, in victory-formats (texture.rs:16, private MICRO), is already fixed in #315, so this PR leaves that file alone.

Testing

Windows 11: cargo doc --workspace --no-deps now reports only the victory-formats warning. cargo xtask policy is ok. Comments only; no code changes.

**@⁠lameloball2813-ui** on GitHub · 2026-11-24 06:39 UTC · [original](https://github.com/Marvisak/VIctory/pull/675) `lameloball2813-ui:docs/rustdoc-private-links` → `main` · +4 −4 · 4 files · 1 commits · merged 2026-11-24 08:21 UTC `cargo doc --workspace --no-deps` on `main` warns five times outside `victory-formats`: | Crate | Where | Warning | |---|---|---| | victory-loader | `lib.rs:7` | `prepare` is both a function and a module (ambiguous link) | | victory-gpu | `list.rs:9` | public docs link to private `crate::draw` | | victory-gpu | `shader_cache.rs:9` | public docs link to private `encode` and `decode` | | victory-shader | `emit/validator.rs:3` | public docs link to private `super::container::hash` | The loader link now names the function (`[`prepare()`]`). The others name private items, which rustdoc can't link for readers of the public docs, so they stay as code without a link. The text is unchanged. The one warning left, in `victory-formats` (`texture.rs:16`, private `MICRO`), is already fixed in #315, so this PR leaves that file alone. ## Testing Windows 11: `cargo doc --workspace --no-deps` now reports only the `victory-formats` warning. `cargo xtask policy` is ok. Comments only; no code changes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:12:34 +00:00
github manually merged commit 5864aaba28 into gh-pr/675/base 2026-11-26 04:12:35 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
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
github/Marvisak--VIctory!675
No description provided.