Quantcast
Channel: How to get a feature requirement tag in the documentation generated by `cargo doc`? - Stack Overflow
Browsing all 3 articles
Browse latest View live

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 Article


Answer 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 Article

Image may be NSFW.
Clik here to view.

How 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
Browsing all 3 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>