Skip to content

docs: fix intra-doc links to private items; gate rustdoc warnings in CI - #107

Merged
coderdan merged 1 commit into
mainfrom
docs/fix-intra-doc-links
Oct 16, 2026
Merged

coderdan merged 1 commit into
mainfrom
docs/fix-intra-doc-links

Conversation

@coderdan

@coderdan coderdan commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

cargo doc gave 4 warnings: public docs linked to private items, so the links didn't work on docs.rs.

  • scheme::bit2_w6 module docs: linked to crate::scheme::decompose (pub(crate)) and to the private Z2Hash type alias.
  • OreAes128Bit6::encrypt_left: linked to crate::scheme::decompose.
  • ct_bench::fy_swaps_only: linked to oblivious::reference::build (private).

These are now plain code spans that say the items are crate-private. The PR also adds a CI docs step that runs cargo doc --no-deps --all-features with RUSTDOCFLAGS=-D warnings, so this can't come back unnoticed.

Verification

  • Rust 1.78 and 1.89: cargo doc passes with -D warnings for both ore-rs and orderable-bytes.
  • --document-private-items: also clean.

Public docs for scheme::bit2_w6 and the ct_bench module linked to
crate-private items (scheme::decompose, the Z2Hash alias,
oblivious::reference::build), so cargo doc warned and the links were dead
on docs.rs. Name them as plain code spans instead, and add a CI step that
runs cargo doc with -D warnings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused documentation corrections and CI gate match the stated purpose, with no unresolved issues identified.

0 open findings

What changed in this PR

Fixes public documentation links to private items and adds a CI guard against rustdoc warnings.

Changes:

  • Replaces four private-item links with plain code spans.
  • Runs cargo doc --no-deps --all-features in CI with warnings treated as errors.
File Description
packages/​ore-rs/​src/​scheme/​bit2_w6.rs Corrects three documentation references to private items.
packages/​ore-rs/​src/​lib.rs Replaces the private reference-builder link with a code span.
.github/​workflows/​test.yml Adds the rustdoc warning gate.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@freshtonic freshtonic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs and CI only. No change to code that runs, so there is no security effect.

  • The three broken links now point to crate-private items as plain code spans, and the text still describes them correctly.
  • I ran RUSTDOCFLAGS=-D warnings cargo doc --no-deps --all-features on this head: clean. With --document-private-items: also clean.
  • The new CI step covers the whole workspace with --all-features, so it also checks the feature-gated ct_bench docs.

🤖 Generated with Claude Code

@coderdan
coderdan merged commit a9a8737 into main Oct 16, 2026
11 checks passed
@coderdan
coderdan deleted the docs/fix-intra-doc-links branch October 16, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants