3 ms·
In Rust you only need to compile your dependencies once. After that it's just your app because dependencies don't change.
by koakuma-chan 1y ago
In Rust you only need to compile your dependencies once. After that it's just your app because dependencies don't change.
- binary132 1y agothat is also the case in Go…?
- koakuma-chan 1y agoSure, but the point is: don't be scared of dependencies in Rust.
- binary132 1y agoWell the context was a comparison of pros and cons and you started with “in Rust” so perhaps you can see why it sounded like you were presenting it as a pro.
- nulld3v 1y agoThis may be true, but in my experience Rust is still slower to compile because monomorphization must be done for deps every time you compile, even for deps that are already compiled. And monomorphization ends up taking a long time because it is done on every type/function that uses generics, and Rust code tends to use generics very liberally.