Earlier quoted context omitted.
Rust does not have a textual substitution pre-processor, so like, you can do this sorta kinda but it would be way more involved.
I keep meaning to dive into Rust, but it feels like they've removed so many useful things in the name of safety. I mean, I get it, these are all things which can be used to very easily cause chaos and shoot yourself in the foot. I look at code that I've written, though, and see so many challenges to writing the same thing in Rust. I spend 99% of my time in embedded Linux or bare metal, though, so maybe my view point…
(It took me a while to write back to you because I am busy writing bare-metal embedded Rust, btw. Including using some macros!)