orium / cargo-rdme

Cargo command to create the README.md from your crate's documentation
Mozilla Public License 2.0
126 stars 5 forks source link

feature req: handle #![doc] #178

Open joshka opened 1 year ago

joshka commented 1 year ago

#![doc] and various versions gated with feature flags etc are useful for:

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.

orium commented 1 year ago

Once #177 is done this should be relatively easy to do.

joshka commented 1 year ago

Noted - thanks!