Repository navigation
refactor(xtask): check that piqueld-client stays free of daemon and server crates - #619
Draft
PiquelChips wants to merge 2 commits into
Draft
PiquelChips wants to merge 2 commits into
PiquelChips wants to merge 2 commits into
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
piqueld-client is the published client the CLI and dashboard share, and builds for wasm32, so it must not depend on the daemon's crates or on Docker, database or browser frameworks, through any dependency kind, nor on a server framework outside its native tests. The check now reads every target, so wasm32-only dependencies count too. Part of PQD-162
Its rule named only the daemon's crates, so a development dependency on the CLI, the dashboard or the tooling would have passed. It now forbids every workspace crate but piqueld-core and piqueld-probe, and the docs say plainly that only its tests may use a server framework. Part of PQD-162
PiquelChips
force-pushed
the
refactor/client-boundary-check
branch
from
November 22, 2026 22:12
d7ce558 to
ce11060
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
just boundarychecked the core and the daemon's crates, but notpiqueld-client, the published client the CLI and dashboard share. It builds for wasm32, so a dependency on the daemon, its store, or a Docker, database or server framework would break the dashboard or leak server code into the published crate, and nothing caught it.The check now has a rule for the client: no workspace crate but
piqueld-coreandpiqueld-probe(so neither the daemon's crates nor the CLI, dashboard or tooling) and nobollard,sqlxorleptos, through any dependency kind, and noaxumoutside its native tests, which serve their requests with it. It also reads every target (cargo tree --target all), since by defaultcargo treeonly sees the host's and would miss a wasm32-only dependency. The existing rules still pass with that. The module-boundaries and Rust-conventions pages describe the new rule.Part of PQD-162
Proved with
just boundary: it passes, and fails whenpiqueld-generatedis added as a dev-dependency,axumas a normal dependency, orpiqueld-configas a wasm32-only dev-dependency (each reverted).Checklist
AGENTS.mdit applies to,documentation included, with its reverse states. (Developer tooling only: the docs page is updated.)
Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)