#proc-macro #macro #proc-macro-utils

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

#140 in Procedural macros

Download history 120895/week @ 2024-12-17 37767/week @ 2024-12-24 96452/week @ 2024-12-31 169718/week @ 2025-01-07 154248/week @ 2025-01-14 146591/week @ 2025-01-21 145040/week @ 2025-01-28 164011/week @ 2025-02-04 155989/week @ 2025-02-11 179614/week @ 2025-02-18 205963/week @ 2025-02-25 217937/week @ 2025-03-04 195527/week @ 2025-03-11 209902/week @ 2025-03-18 221338/week @ 2025-03-25 217134/week @ 2025-04-01

890,810 downloads per month
Used in 444 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

~90KB