-
Notifications
You must be signed in to change notification settings - Fork 153
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
feature request: have --features
flag check available features
#474
Comments
The registry contains features, we also have logic for getting |
#193 is related |
The main grievance I had when opening this issue is mostly addressed now that #538 et. al. is merged, so I just wanted to check if anyone thinks this would be a substantial enough improvement to add? I guess it would guard against typos etc. I'm happy to work on it sometime if people still think it would be worth it, otherwise I'm happy to close it. |
Oh, I think validating inputs would be a big help! I see showing the list as something to help with discoverability. For myself, if I thought I knew what the features were already, I'm unlikely to check the list. This is on top of identifying typos, as you mentioned. |
cargo add
by default already queriescrates.io
for the latest versions which is great. I'm wondering if it's also possible to have it query available feature flags at the same time? This comes from a slight frustration in the following scenario:This is a frequent occurrence since a lot of crates have common features like
serde
orderive
but they're often used interchangeably so it can be frustrating to try and find out which one it is. I personally usecargo add
all the time with this, and it would be a really nice quality of life feature to havecargo add
check for this. Would this be possible? In any case, thanks for all the great work!The text was updated successfully, but these errors were encountered: