Closed lexi-the-cute closed 7 months ago
As of 0.0.36, the following syntax should work for your use case:
build_info::build_info! {
/// Public functions should really have a doc comment.
pub fn function_name
}
I am not 100% happy about how this looks, but the doc comment needs to go inside the macro, and I am not seeing a really much better solution at the moment.
When using
pub build_info
, the missing doc comment warning comes up as I have a lint setup to enforce making sure I document everythingI would like the ability to specify the doc comment or have one auto-generated with the function