Repository navigation
docs(issues): add issue specifications for #1804 and #1805 - #1806
Merged
josecelano merged 1 commit intoMay 20, 2026
Conversation
There was a problem hiding this comment.
Pull request overview
This spec-only PR adds two new issue specification documents to formalize planned dev-tools improvements: switching to cargo machete --with-metadata for more accurate unused-dependency detection, and rewriting the workspace-coupling report tool to use syn + comply with the global CLI output contract.
Changes:
- Add issue spec for #1804 to adopt
cargo machete --with-metadataand remove unused dev dependencies. - Add issue spec for #1805 to replace the workspace-coupling regex scanner with
syn, add tests, and emit NDJSON JSON records on stderr per ADR.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/issues/open/1804-use-cargo-machete-with-metadata-and-remove-unused-dev-deps.md | New spec defining scope, plan, and verification for migrating machete usage and removing unused dev deps. |
| docs/issues/open/1805-fix-workspace-coupling-report-for-brace-and-reexport-imports.md | New spec defining scope, plan, and verification for a syn-based import scanner + ADR-aligned CLI output and tests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
torrust#1804: Use cargo machete --with-metadata and remove unused dev dependencies torrust#1805: Overhaul workspace-coupling report tool: replace regex scanner with syn and adopt CLI output contract Both issues are related: torrust#1804 removes unused deps that were missed by plain cargo machete, while torrust#1805 fixes the coupling report scanner that confirmed which deps had zero references.
josecelano
force-pushed
the
1804-1805-add-issue-specs-machete-and-workspace-coupling
branch
from
May 20, 2026 11:58
7b788bd to
a808d83
Compare
Member
Author
|
ACK a808d83 |
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.
Summary
Spec-only PR. Adds issue specifications for two related dev-tools improvement issues.
#1804 — Use
cargo machete --with-metadataand remove unused dev dependenciesSwitches the pre-commit hook and CI from plain
cargo machetetocargo machete --with-metadata,which correctly detects ~15 unused dev dependencies across the workspace that the text-only scan
misses. Removes all flagged deps after confirming each is genuinely unused.
Spec:
docs/issues/open/1804-use-cargo-machete-with-metadata-and-remove-unused-dev-deps.md#1805 — Overhaul workspace-coupling report tool
Replaces the regex-based import scanner in
contrib/dev-tools/analysis/workspace-coupling/with a
syn-based AST parser to correctly extract allusestatement forms (brace groups,glob imports,
pub usere-exports). Also brings the tool's CLI output into compliance withthe global CLI output contract (ADR
20260519000000_define_global_cli_output_contract) byreplacing plain-text
eprintln!calls with JSON NDJSON records. Adds unit and integrationtests following TDD order.
Spec:
docs/issues/open/1805-fix-workspace-coupling-report-for-brace-and-reexport-imports.mdRelated to #1804
Related to #1805
Related to #1669