10 releases (breaking)
new 0.8.0 | May 14, 2023 |
---|---|
0.6.0 | Apr 29, 2023 |
0.5.1 | Mar 2, 2023 |
#138 in Procedural macros
6,314 downloads per month
Used in 26 crates
(4 directly)
73KB
1K
SLoC
proc-macro-utils
Some utility functions on proc-macro types.
lib.rs
:
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.
Dependencies
~115KB