Rustdoc should note default-feature in item descriptions #105669
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Currently, if an item is feature-gated (Such as Axum's Query struct), it is noted at the top. That is awesome! However, the
Query
struct is available by default, as thequery
feature is a Cargo default-feature. This is confusing wording IMO.I think that if that feature is marked as a default feature, that should be noted too. As is the wording: "Available on crate feature FEATURE only." implies it wont work by default.
The text was updated successfully, but these errors were encountered: