Blog post: Improving build times for derive macros by 3x or more

Link to the article: BlogWerx: Improving build times for derive macros by 3x or more (kodewerx.org)

TL;DR:

  • I rewrote my proc-macro crates and improved the initial build time by just over 3x across 3 platforms.
  • Officially announcing the crates:
    • myn: Minimalist Rust syntax parsing for procedural macros.
    • onlyerror: Obsessively tiny error derive macro.
    • onlyargs: Only argument parsing! Nothing more.
    • onlyargs_derive: Derive macro for onlyargs.
8 Likes

A minor comment to the implementation of myn: format!("{self}") is more simply written as self.to_string().

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.