News for hackers. Stuff that matters.
Re:Fast Rust Builds by ReactiveJelly on Sunday September 05, 2021 @12:42PM (#28425619)
The critics are right that the build times are slow even in debug mode, and that it's one of the most frustrating things about the language even for experienced users.

There are some alternate codegen backends that aim to fix this by compiling less-optimized debug builds more quickly.

Re:Fast Rust Builds by PoignardAzur on Friday September 10, 2021 @08:10PM (#28488257)
I wouldn't hold my breath too much.

Something I noticed since I've started timing builds is that codegen and linking usually takes less than 30% of the build time for an incremental build.

So in practice, switching to Cranelift and lld/mold will shave maybe 2 seconds off a 10-seconds build. Better, but still flow breaking.

If we want Go-like compile times, we're going to need some more fundamental improvements to the compiler.

Re:Fast Rust Builds by sodality2 on Sunday September 05, 2021 @01:10PM (#28425840)
Ooh, got a link to any of those alternate backends?
Re:Fast Rust Builds by pjmlp on Sunday September 05, 2021 @01:13PM (#28425868)
For example Cranelift and using lld as linker.

Also read the Bevy documentation about improving build times.