Skip to content

Allow doc-strings on item macros #3163

Closed
@eholk

Description

@eholk

Some of our libraries are starting to export protocols. It'd be nice to be able to add documentation to these that gets included in the Rustdocs.

I don't know if it's better to document it as a macro invocation, or as documentation on whatever the macro expands to. For protocols, both makes sense, although documenting the unexpanded version is probably more useful to the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensionsT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions