#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

#2700 in Procedural macros

Download history 9/week @ 2024-11-20 9/week @ 2024-11-27 13/week @ 2024-12-04 28/week @ 2024-12-11 9/week @ 2024-12-18 6/week @ 2025-01-15 13/week @ 2025-01-22 13/week @ 2025-01-29 14/week @ 2025-02-05 8/week @ 2025-02-12 34/week @ 2025-02-19 23/week @ 2025-02-26 11/week @ 2025-03-05

77 downloads per month
Used in 6 crates (4 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
~22K SLoC