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 request: Expose doc comments for struct/enum/field definitions #103

Open
norcalli opened this issue Sep 14, 2022 · 1 comment
Open

Comments

@norcalli
Copy link

Given that a big usecase is for generating UIs, the natural usecase for a doc comment is to act as a tooltip. It's surprisingly hard to find any derive macro that exposes doc comments, so I'm wondering if it's possible to do or add here. Maybe there's some limitation that makes it impossible I'm not aware of?

@norcalli norcalli changed the title Expose doc comments for struct/enum/field definitions Feature request: Expose doc comments for struct/enum/field definitions Sep 14, 2022
@nhawkes
Copy link

nhawkes commented Feb 4, 2023

+1 for wanting this feature

I know clap does this (https://github.com/clap-rs/clap/blob/master/clap_derive/src/utils/doc_comments.rs#L8) so I presume the same approach could be taken here

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