Have you ever wondered how to create these feature annotations in your documentation?
This is done with the doc_cfg
feature. However, this is an unstable feature, and it cannot be used on stable Rust. This gist is a guide on how to work around that.
Add this to the top of your lib.rs: