#proc-macro #macro-utilities #macro

proc-macro-utils

low-level utilities on proc-macro and proc-macro2 types

13 releases (breaking)

0.10.0 May 21, 2024
0.9.1 Mar 13, 2024
0.8.0 May 14, 2023
0.5.1 Mar 2, 2023

#392 in Procedural macros

Download history 216817/week @ 2025-05-14 194724/week @ 2025-05-21 203337/week @ 2025-05-28 196191/week @ 2025-06-04 263966/week @ 2025-06-11 222385/week @ 2025-06-18 275823/week @ 2025-06-25 274748/week @ 2025-07-02 315255/week @ 2025-07-09 401973/week @ 2025-07-16 356222/week @ 2025-07-23 241273/week @ 2025-07-30 258327/week @ 2025-08-06 238891/week @ 2025-08-13 216980/week @ 2025-08-20 152981/week @ 2025-08-27

917,260 downloads per month
Used in 601 crates (5 directly)

MIT/Apache

79KB
1.5K SLoC

Some useful functions on proc_macro and proc_macro2 types

E.g. pushing tokens onto TokenStream and testing for specific punctuation on TokenTree and Punct

It also adds the assert_tokens! and assert_expansion! macros to improve unit testability for proc-macros.


proc-macro-utils

CI Status Crates.io Docs.rs Documentation for main

Some utility functions on proc-macro types.

Dependencies

~86KB