-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Allow adding a description for features #4956
Comments
Adding more user-facing metadata to the Cargo manifest concerns me.
|
I've created an RFC based around this, rust-lang/rfcs#3416. I tried to address some of the concerns listed above, but feedback is welcome there |
Prior art: |
Personally, I don't want to require format-preserving parses to extract non-syntactically meaningful comments as-if they were syntactically meaningful. Most of the talk has been around adding a new field, reminiscent of |
There's an existing crates.io feature request requesting that crate pages list the features the crate provides. Unfortunately currently that would just be a list of feature names, since that's all that the manifest format allows. It would be nice if features were allowed to provide a description as well, like (to modify the example from the docs):
This has a lot of overlap with the implicit features RFC. Namely, it requires the proposed "verbose form" of specifying features in order to even have a place to put the description. Additionally, if that RFC were not implemented then we would also likely need to allow adding descriptions to optional dependencies, since they can currently be used as features.
The text was updated successfully, but these errors were encountered: