Huge file size on resulting binary

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

1 Like

Hi,

There are several post on this topic

And there is this article about it also Rustlog : Why is a Rust executable large?

4 Likes