#proc-macro #debugging #syn #macro #pretty-print

proc-utils

A series of traits, macros, functions, and utilities that make writing and debugging proc macros easier

1 unstable release

0.1.0 Jun 8, 2023

#2042 in Procedural macros

Download history 1/week @ 2023-12-11 3/week @ 2023-12-18 5/week @ 2024-01-08 4/week @ 2024-01-15 10/week @ 2024-02-12 23/week @ 2024-02-19 53/week @ 2024-02-26 24/week @ 2024-03-04 35/week @ 2024-03-11 16/week @ 2024-03-18 25/week @ 2024-03-25

103 downloads per month
Used in 5 crates (3 directly)

MIT license

6KB

proc-utils

Crates.io docs.rs Build Status MIT License

This crate provides a series of traits, macros, functions, and utilities that make writing and debugging proc macros easier

This includes pretty-printing facilities for anything implementing syn::ToTokens, as well as some useful macros including #[overwrite_with(..)] and #[suppress_item], which allow for suppressing and/or replacing the underlying item that the attribute is attached to, which can be a useful debugging trick.

See the documentation for specific usage examples.

Dependencies

~0.5–1MB
~24K SLoC