Why is Rust binaries on Windows so much smaller?

56 points Nonetrixwastaken

I am already aware Rust binaries are quite big and I know how to mitigate it mostly if needed for some reason that is not my question

https://github.com/johnthagen/min-sized-rust

But why is there such a big difference between Windows and Linux with no tweaks? Google returned nothing useful

Windows

https://preview.redd.it/qn5ko2y2dze91.png?width=603&format=png&auto=webp&s=210bfeb8a59dcf630ad159867b26cf658a8f91da

Linux

​

https://preview.redd.it/q9ivchn4dze91.png?width=599&format=png&auto=webp&s=6cd0ae4ea36b473e43e40fa771c0e22871cf71bb

This isn't meant to start a OS flame war