Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature req: handle #![doc] #178

Open
joshka opened this issue Sep 7, 2023 · 2 comments
Open

feature req: handle #![doc] #178

joshka opened this issue Sep 7, 2023 · 2 comments

Comments

@joshka
Copy link

joshka commented Sep 7, 2023

#![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
Copy link
Owner

orium commented Sep 7, 2023

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

@joshka
Copy link
Author

joshka commented Sep 7, 2023

Noted - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants