Skip to content

Add --workspace, --all, and other flags to standard cargo commands#42

Merged
jjhafer merged 3 commits intosilvermine:masterfrom
yokuze:add-workspace-flag-to-cargo-cmds
Mar 10, 2026
Merged

Add --workspace, --all, and other flags to standard cargo commands#42
jjhafer merged 3 commits intosilvermine:masterfrom
yokuze:add-workspace-flag-to-cargo-cmds

Conversation

@yokuze
Copy link
Copy Markdown
Contributor

@yokuze yokuze commented Mar 10, 2026

This updates our new-Rust-repo setup docs to include flags for linting/fixing Rust code in workspaces, and two additional flags for ensuring that cargo clippy --fix can run against uncommitted code.

yokuze added 3 commits March 10, 2026 10:02
When a Rust project is using workspaces (i.e. local Cargo crates)
and you want to run Clippy from the project root, you must include
the --workspace flag, otherwise Clippy will only lint non-workspace
files. See [0].

[0]: https://github.com/silvermine/tauri-plugin-download/pull/31/changes#r2898913275
Similar to the --workspaces flag for Clippy, --all is required.
By default, cargo clippy --fix halts with an error if there are uncommitted
changes in the repo.
@yokuze yokuze requested a review from jjhafer March 10, 2026 14:21
@yokuze yokuze self-assigned this Mar 10, 2026
@jjhafer jjhafer merged commit ab3d8de into silvermine:master Mar 10, 2026
5 checks passed
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.

2 participants