That's most likely because windows indexes and scans files rustc produces. My linux machines demolish my iMac in rust compilation.
Intel iMac?
M4. To be fair I bought it as a pretty ssh terminal in living room into compute in another room.