Now we’re getting somewhere. The reason why that triggered a rebuild is that the compiler couldn’t tell—or, more likely, incremental compilation lacked the hooks to tell the build system—that a rebuild was not necessary.
We already do that in rustc, for that exact reason (Cargo does what you describe). Look at how many subcrates are under src/. Splitting up into fine grained crates to help with build time is a process that has been going on for years.
-
-
This Tweet is unavailable.
-
Yes, Cargo does that. However, this isn't as helpful as you might think for the compiler because it's self-hosting. Any change anywhere in the compiler could potentially change how the compiler itself is compiled, which could cause any test to fail if rustc miscompiles itself.
- 2 more replies
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.