I highly recommend checking out makepad [1] - they have +100k of rust code and the compile time is around 10-15 seconds on commodity hardware.
However they are obsessed about performance. They reason for such speedy compile times is that makepad almost has no dependencies.