Show feature labels in generated docs#3
Conversation
|
To test this locally you have to generate the docs with |
emilk
left a comment
There was a problem hiding this comment.
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.