Use doc_cfg
(#[doc(cfg(feature = "..."))]
) to show feature requirements
#365
Labels
docs
unclear documentation
Show these in docs for
![image](https://user-images.githubusercontent.com/639336/103467745-f45fe580-4d06-11eb-906f-0110689cf618.png)
derive
andws
:![feature(doc_cfg)]
is nightly only, butdocs.rs
uses nightly by default.From https://stackoverflow.com/a/61417700
The text was updated successfully, but these errors were encountered: