-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
add a flag to cargo add
to make it show all features
#15178
Comments
Can you provide an example of a crate with that large of a feature list that you want to browse? If we don't support this already, the two most ways to support this that are aligned with cargo would be
|
right now it shows:
|
Doing a quick look to see how short-term vs long term that feature count is There are 4 "private" features which would be aided by #10882. They are using It looks like the different backends are not mutually exclusive but I suspect some aspects might benefit from https://internals.rust-lang.org/t/pre-rfc-mutually-excusive-global-features/19618, reducing the number of features. |
Looking at that example, another option is that we bump the max feature count. The number we chose (30) was arbitrary and was meant to avoid cases like |
i found a ugly workaround: by specifying a non-existent feature, cargo will list all features:
|
#15200 added a cap on that though its in favor of showing deactivated features. |
Problem
Currently when a crate has too many features,
cargo add
only shows part of them and prints "X deactivated features". this is useful if i want to see a concise summary, but sometimes i actually want to see all the available features to see what i can enable.Proposed Solution
add an new flag to make
cargo add
print all features. or perhaps make it do so when-v/--verbose
is specified.Notes
No response
The text was updated successfully, but these errors were encountered: