News for hackers. Stuff that matters.
Re:Why is my Rust build so slow? by mamcx on Friday December 31, 2021 @10:59AM (#29749213)
Macros.

This is a major pain. I wish it get more attention (and hopefully: How about a SINGLE way to do macros? Like zig?).

Serde is another killer on compiling speed.

Re:Why is my Rust build so slow? by aliceryhl on Sunday January 02, 2022 @05:05AM (#29767383)
Well, one of the advantages of having two ways to do macros is that macro_rules! macros are much much faster than procedural macros.
Re:Why is my Rust build so slow? by mamcx on Monday January 03, 2022 @01:20PM (#29784166)
Yeah, but then why not make it the only one? One reason is that proc-macros can "see" the syntax outside the point of declaration(or enclosed). This means you must do macro_rules! {struct.... } instead of declare the struct first then forward it.