#proc-macro #string #terrazzo #utility

nameth

A simple macro to generate a static &str representing the name of a function, a struct or an enum

17 releases

Uses new Rust 2024

0.1.17 Aug 5, 2025
0.1.16 Jun 28, 2025
0.1.11 May 29, 2025
0.1.7 Mar 29, 2025
0.1.3 Dec 28, 2024

#925 in Procedural macros

Download history 12/week @ 2025-07-28 152/week @ 2025-08-04 40/week @ 2025-08-11 60/week @ 2025-08-18 40/week @ 2025-08-25 70/week @ 2025-09-01 33/week @ 2025-09-08 58/week @ 2025-09-15 38/week @ 2025-09-22 66/week @ 2025-09-29 20/week @ 2025-10-06 45/week @ 2025-10-13 48/week @ 2025-10-20 28/week @ 2025-10-27 26/week @ 2025-11-03 15/week @ 2025-11-10

125 downloads per month
Used in 8 crates

MIT license

5KB

A simple macro to generate a static &str representing the name of a function, a struct or an enum.

Dependencies

~0.5–1MB
~21K SLoC