I am new to Rust and so far I was amazed by its design. But I encountered something that makes me be scared to use it in commercial projects. The size of the executable binary file of a "Hello world" application is 3.2Mb.
-rwxr-xr-x 2 kos kos 3,2M Jul 10 15:44 experiment_app_size
That's huge!
- The version of
rustc
is1.53.0
- The toolchain is
stable-x86_64-unknown-linux-gnu
. - Target is
release
.
I am wondering is it planned to fix the problem in the future? Is there a technique I can use to decrease the size of the executable binary file? Is the same problem relevant to WASM toolchain?