Cranston's Life - Rust and More Rust

A Reminder About the Power of Macros!

Compiling source code can be a FRUSTRATING source of delays under normal circumstances, but sometimes there are VERY FRUSTRATING situations like described in the 5 hours to compile macro, what can I do? question!

The PROBLEM is described like this: "I have a very large macro instantiation, which takes 4 or 5 hours to compile with Rust 1.40, so I'm looking to improve this unreasonably long build time."

A list of attempts to diagnose and remedy the PROBLEM is given.

Luckily, there is an accepted SOLUTION!

5 HOURS to compile some Rust source code!

What a SITUATION!

This ordeal reminds me about the POWER of macros, in both GOOD ways and BAD ways!

Macros are a tool to be used with GREAT CARE!

They can be a source of immense CONVENIENCE, allowing GREAT THINGS to be achieved.

But as this situation shows, they can CHALLENGE a compiler in unimaginable ways.

I must study this PROBLEM in more detail.