-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Allow adding a description for features #4956
Copy link
Copy link
Open
rust-lang/rfcs
#3485Labels
A-featuresArea: features — conditional compilationArea: features — conditional compilationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-rfcStatus: Needs an RFC to make progress.Status: Needs an RFC to make progress.
Metadata
Metadata
Assignees
Labels
A-featuresArea: features — conditional compilationArea: features — conditional compilationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-rfcStatus: Needs an RFC to make progress.Status: Needs an RFC to make progress.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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.