-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Tracking Issue for feature-documentation #17445
Copy link
Copy link
Open
Labels
A-featuresArea: features — conditional compilationArea: features — conditional compilationA-manifestArea: Cargo.toml issuesArea: Cargo.toml issuesC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.Z-feature-metadataNightly: feature-metadataNightly: feature-metadata
Description
Activity
Metadata
Metadata
Assignees
Labels
A-featuresArea: features — conditional compilationArea: features — conditional compilationA-manifestArea: Cargo.toml issuesArea: Cargo.toml issuesC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.Z-feature-metadataNightly: feature-metadataNightly: feature-metadata
Type
Projects
- StatusShow more project fieldsNo status
Summary
RFC: #3485
Original issue: #4956
Implementation: #17447
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#feature-documentation
Allow packages to document individual Cargo features in the manifest. Cargo and other tools can use this metadata to display feature descriptions.
Unresolved Issues
docwas chosen for consistency with#[doc(...)], butpackage.descriptionandpackage.documentation(a URL) also exist as precedent.cargo metadataoutput?One possibility is to extend the existing
featuresentry with a parallel structure:Future Extensions
If this RFC gets stabilized before any corresponding change in rustdoc, its documentation should highlight that rustdoc may parse the description and support intra-doc links in the future, but not at the current time. Users need to be aware of this potential incompatibility.
docin the index could be reevaluated. Including only the first (summary) line ofdoccould be a possibility.cargo addcan show thedocanddeprecatedsummary with the listed features.cargo-infocan use this information to provide feature descriptions.About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.