The --strip flag would strip the binary right after compiling it, which increases the time of compiling but reduces the binary size.
A println!("Hello World!") program, for example:
- 3.3M after compiling.
- 268KB after stripping.
(I'm willing to implement it.)
The
--stripflag would strip the binary right after compiling it, which increases the time of compiling but reduces the binary size.A
println!("Hello World!")program, for example:(I'm willing to implement it.)