You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's pretty trivial to add documentation attributes to items generated by a procedural macro, especially in Metered's macros where the registry structures are built using the quote! macro. One would simply annotate the structs and fields with a bunch `#[doc = "The doc comes here"] attributes (the strings have to be constructed dynamically before the quote invocation, to make sure it refers to the right names).
The text was updated successfully, but these errors were encountered:
It's pretty trivial to add documentation attributes to items generated by a procedural macro, especially in Metered's macros where the registry structures are built using the
quote!
macro. One would simply annotate the structs and fields with a bunch `#[doc = "The doc comes here"] attributes (the strings have to be constructed dynamically before the quote invocation, to make sure it refers to the right names).The text was updated successfully, but these errors were encountered: