`#![doc]` and various versions gated with feature flags etc are useful for: - including examples from a file into the lib docs using [include_str!](https://doc.rust-lang.org/std/macro.include_str.html) / [include-doc)](https://crates.io/crates/include-doc) - documenting features in the cargo.toml using [document_features](https://crates.io/crates/document-features) E.g.: ```` //! # Example //! ```rust #![doc = include_str!("../examples/hello_world.rs")] //! ``` //! # Features #![cfg_attr(feature = "document-features", doc = document_features::document_features!())] ```` Currently these render as empty in the readme.
#![doc]and various versions gated with feature flags etc are useful for:E.g.:
Currently these render as empty in the readme.