upvote
I am very sceptical zig actually compiles faster than rust.

I had similar code written in zig and c++ and cold compilation was many times faster in c++ and incremental compilation was instant in c++.

I think the reason most rust projects compile slow is because of excessive usage of dependencies and also the excessive use of metaprogramming in code.

Zig doesn’t have multiple compilation units so it doesn’t parallelize compilation

reply
You might be interested in learning more about `-fincremental`, that's how Zig gives you fast rebuilds.
reply