TLDR · PROGRAMMING, DESIGN & DATA SCIENCE
MAKING RUST BINARIES SMALLER BY DEFAULT
Summary from the TLDR newsletter
Cargo by default now uses `strip = 'debuginfo'` for the `release` profile unless debuginfo is explicitly requested for some dependency. This new default will be used for any profile that does not enable debuginfo anywhere in its dependency chain. This article looks at how a developer noticed that Rust binaries were unnecessarily large and then developed and submitted a fix for it.