UPX: Rust Binary Size Optimization
By tweaking your build configuration and applying a post-build compressor, you can dramatically reduce the size of your Rust executables.
1. Default Release Build
With the default cargo build --release settings, the produced binary is about 6.1 MB.
$...
ahaoboy.hashnode.dev2 min read