Skip to content

Support --workspace flag as an alias for --all #5635

@bstrie

Description

@bstrie

cargo fmt supports a --all flag for operating on all members in a workspace. cargo check also supports --all for the same purpose, but this is deprecated in favor of --workspace, which is an alias with no semantic difference. Other tools based on cargo check, like cargo clippy, inherit the ability to use --workspace. The inability to use --workspace in an official tool thus feels inconsistent.

For reference, here's the PR where cargo clippy switched to using cargo check's manifest handling, which had the effect of removing their own bespoke --all flag: rust-lang/rust-clippy#2585 .

It would be nice for all of the officially-provided tools to present consistent interfaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions