News for hackers. Stuff that matters.
Re:Rust for web development: 2 years later by atarian on Wednesday February 24, 2021 @01:52PM (#26253959)
30 minutes to build Rust in a container? Why does it take so long?
Re:Rust for web development: 2 years later by fafk on Wednesday February 24, 2021 @02:21PM (#26254327)
He's probably using Docker with Mac/Win, which runs a linux VM. The rust compiler doesn't like being run in a VM like this.

It's fast on Linux where containers are native.

Re:Rust for web development: 2 years later by stusmall on Wednesday February 24, 2021 @02:39PM (#26254584)
The last place I worked at had pretty similar build times for one rust service. Right before I left we ended up finding some low hanging fruit to trim that down to 15-20, but that's still pretty gnarly.

Build times can pile up pretty quickly as systems grow over time. I have to say with that code base the big sin was some extreme macro misuse. It's still possible to see times like that without heavy macro usage though.

That was a native linux build on a fairly modern i7 laptop.