It's great to see rust maturing. That people care about binary size and work to improve it is a good sign.
It's not a great sign that this bug existed for 7 years, people noticed, asked about it, wrote tickets, everybody agreed that it should be fixed but then nobody took the time to actually do it (and the eventual fix is a rather crude hack by just stripping the output binary instead of preventing that debug symbols slip into a release binary in the first place). Looks more like a systemic issue in the Rust development…
The `strip` was added to rust nightly in 2020.
1: https://github.com/johnthagen/min-sized-rust
2: https://kerkour.com/optimize-rust-binary-size
3: https://rustrepo.com/repo/johnthagen-min-sized-rust
4: https://sing.stanford.edu/site/publications/rust-lctes22.pdf
5: https://arusahni.net/blog/2020/03/optimizing-rust-binary-siz...