1. 5
  1.  

  2. 2

    When I started developing this macro, I’d assert that the output matched what I expected, but as the output got larger it became more feasible to just write the output to a file and see if it checked out.

    I’d be curious if using a snapshot testing framework would help in situations like this. There are a few in Rust, the one I’m most familiar with is Insta.

    All in all I’m pretty happy with macro development in Rust, but I wish [..] that there could be some more useful tools for debugging them.

    Between things like cargo-expand and CLion’s macro expansions, I haven’t had too much trouble debugging macros. But I share the sentiment that better tooling around them would be helpful for sure.