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

Merged
lameloball2813-ui merged 1 commit from upstream-pr/675 into main 2026-11-24 08:21:26 +00:00
lameloball2813-ui commented 2026-11-24 06:39:48 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by lameloball2813-ui on 2026-11-24T06:39:48Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6576192601 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/675). Originally posted by [lameloball2813-ui](https://github.com/lameloball2813-ui) on 2026-11-24T06:39:48Z. --- `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.
catminou4 commented 2026-11-24 06:54:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T06:47:19Z.

Review: APPROVED


Verified locally on macOS 26 arm64, rustc 1.98.1 (aarch64-apple-darwin) at head 5864aaba:

  • cargo doc -p victory-loader -p victory-shader -p victory-core -p victory-formats -p victory-pe -p victory-pipeline -p victory-game -p xtask --no-deps --locked: clean, no rustdoc warnings.

(victory-gpu/victory-hle can't rustdoc on macOS at all — main's known cfg issue — so those two files' doc fixes are verified by inspection only.)

Approving.

<!-- greyfinch-sync:Marvisak/VIctory:review:6034834281 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/675#pullrequestreview-6034834281). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T06:47:19Z. **Review:** APPROVED --- Verified locally on macOS 26 arm64, rustc 1.98.1 (aarch64-apple-darwin) at head 5864aaba: - `cargo doc -p victory-loader -p victory-shader -p victory-core -p victory-formats -p victory-pe -p victory-pipeline -p victory-game -p xtask --no-deps --locked`: clean, no rustdoc warnings. (victory-gpu/victory-hle can't rustdoc on macOS at all — main's known cfg issue — so those two files' doc fixes are verified by inspection only.) Approving.
LAKSHYA-cmd-tech commented 2026-11-24 06:54:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T06:49:25Z.

Review: APPROVED


LGTM! Tested on Windows 11 with MSVC Rust 1.98.1. cargo doc for ictory-loader, ictory-gpu, and ictory-shader builds cleanly without warnings. Resolves ambiguous function/module references and private item links in public documentation.

<!-- greyfinch-sync:Marvisak/VIctory:review:6034856311 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/675#pullrequestreview-6034856311). Originally posted by [LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech) on 2026-11-24T06:49:25Z. **Review:** APPROVED --- LGTM! Tested on Windows 11 with MSVC Rust 1.98.1. cargo doc for ictory-loader, ictory-gpu, and ictory-shader builds cleanly without warnings. Resolves ambiguous function/module references and private item links in public documentation.
upstream-sync closed this pull request 2026-11-24 09:05:54 +00:00
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!675
No description provided.