Huge file size on resulting binary


#1

Hi Rusteceans. I am can anyone explain to me why after compiling a small program like hello world or “sum of two numbers”, the source file is less than 1kb but the resulting binary after compilation with rustc is not less than 4MB on Linux Debian


#2

Hi,

There are several post on this topic

And there is this article about it also https://lifthrasiir.github.io/rustlog/why-is-a-rust-executable-large.html