Skip to content

feat: generalizing the command line #58

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

sabify
Copy link

@sabify sabify commented Mar 21, 2025

This PR provides using cargo-all-features with any other cargo subcommands and respect and pass arguments to them.

The new command will look like this:

cargo all-features [subcommand] [subcommand args] [--] [args passed to subcommand with '--']

Example:

cargo all-features clippy --no-deps -- --package xyz

Note: All three pre-defined commands (cargo-[test,check,build]-all-features) have been removed and replaced with a new generic one. If you are willing to keep backward compatibility on this, please let me know to add them.

@sabify
Copy link
Author

sabify commented Apr 6, 2025

@frewsxcv This PR is ready for review.

@nikki-aranya
Copy link

Also pinging @Manishearth, there's been a couple attempts at adding this (see #56, #48, and this), it would be nice to finally see this get added and a new release out.

I'd love to be able to migrate our projects to cargo-nextest as well, but this is a blocker, and cargo-hack doesn't have nearly as good customization as this (see the Cargo.toml section), otherwise I'd use that.

@Manishearth
Copy link
Collaborator

This is a big change, and I'm pretty busy these days. I agree that this would be a good feature to add. I'll perform a partial review but I really can't guarantee anything.

@sabify sabify requested a review from Manishearth June 9, 2025 13:23
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.

3 participants