3 ms·
If I had to guess it is because all of the dependencies had to be compiled too. In a normal Rust application you break it up into crates. Crates are the unit
by stonemetal12 5y ago
If I had to guess it is because all of the dependencies had to be compiled too.
In a normal Rust application you break it up into crates. Crates are the unit of compilation, and are only recompiled when something in the crate changes. In a "normal" developer flow you only touch 1 or two crates at a time so normal developer compile time would be a couple of minutes at most. Even for a new build on a machine most developers would never see the two hour compile time because they would have gotten precompiled dependencies.
- Nullabillity 5y ago> In a "normal" developer flow you only touch 1 or two crates at a time so normal developer compile time would be a couple of minutes at most. Obviously this depends on your computer, but generally incremental Rust builds should typically be on the order of seconds, not minutes. > Even for a new build on a machine most developers would never see the two hour compile time because they would have gotten precompiled dependencies. Cargo doesn't do precompiled dependencies (even between projects on the same machine).