-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Show features with cargo install --list
#13353
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
Comments
Overall, I can't think of any concerns. For myself, I would like to better understand the situation. I don't think I've ever changed the features of the CLIs I use (or known they had other features). Is this a fairly common thing you run into? In what way is seeing the feature helpful to you (I also forget |
I don't know how common it is for CLI tools to have features. But a GitHub search shows that some popular tools do, e.g.,: Frankly, I want this for my self. I have a tool with an optional, experimental feature. I want to be able to easily tell whether I installed the tool with that feature enabled.
In addition to the points above, Cargo will install over an existing package if the selected features differ. So, knowing what features were enabled when a tool was installed can help you to know whether a subsequent cargo install ripgrep
cargo install ripgrep # doesn't work cargo install ripgrep --features=pcre2
cargo install ripgrep # works |
This part sounds pretty similar to #11123 |
Shortly after I opened this issue, I learned about
Since there would be overlap between what I am asking for and the At a minimum, the feature I am asking for deserves more thought. So I am just going to close this for now. |
Problem
Show the features that were selected when a package was installed.
Proposed Solution
Display this additional information when
-v
/--verbose
is passed.E.g., something like this:
Notes
Would you be open to a PR to do this?
The text was updated successfully, but these errors were encountered: