Why are Rust executables so huge?
@lebyy▲ 0 net votes
Problem: I find the approach and the way they define the language in the first two chapters of the documentation particularly interesting. So I decided to get my fingers wet and started out with "Hello, world!". I did so on Windows 7 x64, btw. fn main() {… Fix (from the top answer): By default, the Rust compiler optimizes for execution speed, compilation speed, and ease of debugging (by including symbols, for example), rather than minimal binary size. For an overview of all of the ways to reduce the size of a Rust binary, see my min-sized-rust GitHub repository. The current high level steps to…