Skip to content

docs(moq-native): fix rustdoc links to quinn-gated items under default features#1961

Merged
kixelated merged 1 commit into
devfrom
claude/trusting-shannon-7057c7
Jun 30, 2026
Merged

docs(moq-native): fix rustdoc links to quinn-gated items under default features#1961
kixelated merged 1 commit into
devfrom
claude/trusting-shannon-7057c7

Conversation

@kixelated

Copy link
Copy Markdown
Collaborator

Summary

cargo doc -p moq-native --no-deps with default features fails under RUSTDOCFLAGS="-D warnings" because two doc comments link to items that only exist behind the non-default quinn feature. Dev commit ec405f5 made the noq backend the default and gated pub mod quinn behind #[cfg(feature = "quinn")], so the links no longer resolve under default features.

This makes the local inner-loop just check (which docs the workspace with default features, rs/justfile:20) red even on a clean dev. CI's just rs ci uses --all-features, so it stayed green there.

Broken links:

  • rs/moq-native/src/error.rs[`crate::quinn::Error`] in the Error enum doc.
  • rs/moq-native/src/server.rs[web_transport_quinn::Session] in accept's doc.

Both are reworded to plain backtick text so nothing needs the quinn feature to resolve.

Test plan

  • RUSTDOCFLAGS="-D warnings" cargo doc -p moq-native --no-deps passes (previously failed)
  • RUSTDOCFLAGS="-D warnings" cargo doc -p moq-native --no-deps --all-features still passes

No public API or wire change; documentation-only.

(Written by Claude Opus 4.8)

…t features

dev commit ec405f5 made the `noq` backend default and `quinn` a
non-default feature, so `pub mod quinn` is `#[cfg(feature = "quinn")]`.
Two doc comments still linked to quinn-feature-gated items, which break
intra-doc resolution under default features and make `cargo doc
--no-deps` (with `-D warnings`) fail. That reds the local `just check`
inner loop on a clean `dev`; CI uses `--all-features` so it stayed green.

Reword both to plain backtick text so the docs build under both default
and `--all-features`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@sourcery-ai sourcery-ai Bot 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.

Sorry @kixelated, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@kixelated kixelated merged commit ddc3f36 into dev Jun 30, 2026
2 checks passed
@kixelated kixelated deleted the claude/trusting-shannon-7057c7 branch June 30, 2026 16:06
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.

1 participant