Where can I find the learning materials for attribute macros

The official documents only show some parts, but they are not very comprehensive

does this help? Macros in Rust: A tutorial with examples - LogRocket Blog

Let me have a look, thank you

I wrote some articles about procedural macros in Cinese (which suits you here). Mainly:

  • Reading materials (in English) I found
  • Experience sharing in learning procedural macro
  • Usage summarization about crates
    1. quote
    2. syn
    3. proc_macro2

As for attribute macros, the two examples from dtolnay are heuristic:

2 Likes

thanks!

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.