-
Notifications
You must be signed in to change notification settings - Fork 12
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
Show feature labels in generated docs #3
base: main
Are you sure you want to change the base?
Conversation
To test this locally you have to generate the docs with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoa, didn't know about this. Very nice!
Thought this wasn't needed anymore, that docs.rs had implemented support for the ordinary |
I don't know exactly what the state of things is but the labels aren't showing currently. |
maybe it is only with nightly rustdoc? believe docs.rs does run nightly |
Maybe I should have read that 🤦 |
Checklist
Description of Changes
Adds
#[cfg_attr(docsrs, doc(cfg(any(feature = "..."))))]
to required features are highlighted in the standard rustdoc way.Before:
After:
Related Issues
None.