dtolnay / dtolnay/syn

Add “example of an attribute macro” and “example of fn-like macro” to the main docs

Open
#1,062 0 comments 0 reactions 0 assignees View on GitHub
docs
Dominant language
Rust
Stars
3.4k
Forks
374
Avg merge
1d 5h
Merged PRs (30d)
2

Description

I think https://docs.rs/syn/1.0.76/syn/index.html is a landing page for proc macro docs. As such, it would be useful to include copy-passable example of attribute and function like macros.

Strictly speaking, it’s not the syn’s job to teach what is the signature of attr macro function. Practically syn’s docs is where I personally try to find this info first :)

See https://users.rust-lang.org/t/why-are-the-existing-guides-to-procedural-macros-so-scattered/64617 for context

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.