Closed
Description
Our macro documentation currently has slim documentation on macros by example, and nearly no documentation on procedural macros. Additionally, there is almost no documentation about macro invocation, such as where they are allowed or not allowed. Macros are a language feature like any other, and should be fully documented.
The following RFCs should be fully documented, at least:
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
steveklabnik commentedon Aug 18, 2018
For procedural macros, I have a tiny crate here:
https://github.com/sparkles-web/sparkles/blob/master/example-app/src/main.rs
https://github.com/sparkles-web/sparkles/blob/master/sparkles-macros/src/lib.rs
Havvy commentedon Sep 25, 2018
Proc macro documentation is a lot better.
ehuss commentedon Mar 24, 2019
Macros-by-example are now significantly improved via #511.
Macro invocation sites, grammar, and more was added in #458.
Proc-macros were done in #412.
I believe the listed RFCs are covered now, so closing this issue. There's likely more that can be added about macros, but new issues should probably be opened for specific shortcomings.