↧
Answer by Sprite for How to get a feature requirement tag in the...
In the latest nightly (since v1.57 maybe), you can use feature doc_auto_cfg (merged in PR#90502) and you no longer need to manually mark features for doc, just write cfg as...
View ArticleAnswer by mcarton for How to get a feature requirement tag in the...
The bad news is: It's a nightly-only feature for now.The good news is: docs.rs uses nightly by default.To get this to work all you need is to enable the doc_cfg feature and apply #doc(cfg) to the item...
View ArticleHow to get a feature requirement tag in the documentation generated by `cargo...
If you look at the Tokio docs on docs.rs there's a blue tag indicating that a feature must be activated in order to access this API:I would like to enable this for my crate as well, how can this be done?
View Article
More Pages to Explore .....