Skip to content

refactor: items nothing outside the crate can reach are no longer pub, and unreachable_pub keeps it that way - #633

Open
PiquelChips wants to merge 1 commit into
mainfrom
refactor/lint-unreachable-pub
Open

PiquelChips wants to merge 1 commit into
mainfrom
refactor/lint-unreachable-pub

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

A pub item nothing outside the crate can reach says more than it is: a reader has to check whether it is API. unreachable_pub now warns, so -D warnings keeps those out, and the visibility says what each item is.

Fixed 138 sites in 34 files, mostly with cargo clippy --fix (pub(crate)/pub(super)); the build script's generated BUNDLE and the dashboard's mount by hand.

One #[expect(unreachable_pub)], on mod browser in piqueld-ui: Leptos's #[component] generates public builder methods on each component's props struct, so each of the 71 components is flagged at its own fn whatever its visibility. Nothing in the module can be fixed per site.

Part of PQD-169

Note

written by Claude Sonnet 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 45 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d9cdfd6b-38af-4e23-9f75-cc5205efccaa
Commits

Reviewing files that changed from the base of the PR and between 8dde799 and 825dc82.

Files selected for processing: 34

  • Cargo.toml
  • apps/piquelctl/tests/support/mod.rs
  • apps/piqueld-ui/src/browser/mod.rs
  • apps/piqueld-ui/src/lib.rs
  • apps/piqueld-ui/src/overview/fixtures.rs
  • apps/piqueld/build/dashboard.rs
  • apps/piqueld/examples/generate_openapi/settings_reference.rs
  • apps/piqueld/src/api/http/ui.rs
  • apps/piqueld/src/telemetry/sockets.rs
  • apps/piqueld/tests/support/application.rs
  • apps/piqueld/tests/support/daemon.rs
  • apps/piqueld/tests/support/docker_contract.rs
  • apps/piqueld/tests/support/fixture_dir.rs
  • apps/piqueld/tests/support/git.rs
  • apps/piqueld/tests/support/poll.rs
  • apps/piqueld/tests/support/prebuilt.rs
  • apps/piqueld/tests/support/repository.rs
  • apps/piqueld/tests/support/sqlite.rs
  • crates/piqueld-client/src/lib.rs
  • crates/piqueld-config/src/dns/provider/mod.rs
  • crates/piqueld-docker/build/probe.rs
  • crates/piqueld-store/src/auth/access.rs
  • crates/piqueld-store/src/auth/lineage/mod.rs
  • tools/xtask/src/boundary.rs
  • tools/xtask/src/check_changed/mod.rs
  • tools/xtask/src/coverage.rs
  • tools/xtask/src/dev/mod.rs
  • tools/xtask/src/dist.rs
  • tools/xtask/src/docker.rs
  • tools/xtask/src/docker_test.rs
  • tools/xtask/src/metadata.rs
  • tools/xtask/src/playwright.rs
  • tools/xtask/src/process.rs
  • tools/xtask/src/publish.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips force-pushed the refactor/lint-unreachable-pub branch from fbdf676 to 3f0c6fd Compare November 22, 2026 21:52
@PiquelChips
PiquelChips force-pushed the refactor/lint-unreachable-pub branch from 3f0c6fd to 825dc82 Compare November 22, 2026 21:55
@PiquelChips
PiquelChips marked this pull request as ready for review November 22, 2026 22:20
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