The Rust compiler isn't slow; we are.
Video game development, hacking, and debugging. Brought to you by BlipJoy!
About half of the bin size is the statically linked std, which does not get the dead code treatment from lto. You can workaround this by following the instructions here: GitHub - johnthagen/min-sized-rust: ๐ฆ How to minimize Rust binary size ๐ฆ Before and after results: $ cargo build --release && strip target/release/morr && ls -l target/release/morr Finished release [optimized] target(s) in 0.10s -rwxr-xr-x 1 jay staff 286628 Apr 17 00:59 target/release/morr* $ xargo build --target x86_...
Video game development, hacking, and debugging. Brought to you by BlipJoy!