Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package name wildcard support for cargo fmt -p #6435

Open
sunng87 opened this issue Jan 3, 2025 · 2 comments
Open

Package name wildcard support for cargo fmt -p #6435

sunng87 opened this issue Jan 3, 2025 · 2 comments

Comments

@sunng87
Copy link

sunng87 commented Jan 3, 2025

Problem

The -p option in cargo fmt doesn't support wildcard like *. When I'm running cargo fmt -p "cloud-*", it shows cloud-* is not a member of workspace

However, this feature is fully supported in other cargo commands like check, or even external command like clippy.

It would be nice to keep this behavior consistent among all commands.

Proposed Solution

No response

Notes

No response

@epage
Copy link
Contributor

epage commented Jan 3, 2025

cargo fmt lives in a different repo.

Before moving this, I want to note that not all cargo commands support wildcards. In fact, I think its only the "compilation" commands (cargo check, cargo build, cargo doc, cargo clippy, maybe cargo miri). Others do not support them, like cargo update, cargo remove, etc.

@epage
Copy link
Contributor

epage commented Jan 3, 2025

@rustbot transfer rustfmt

@rustbot rustbot transferred this issue from rust-lang/cargo Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants