I published my first personal blog post in a minute. Optimizing Rust Binary Size. Check it out! arusahni.net/blog/2020/03/opti

@aru very nice article, most of the tricks I knew but finally I understand why rust binaries are not already stripped by default.

The repo github.com/johnthagen/min-size also mentions some further optimizations if you are willing to use rust nightly.


@dnaka91 thanks! Yeah, I'm still trying to assess my risk tolerance, but those aren't out of the question.

@aru Oh also, you could run upx on the binary afterwards to further shrink it.


Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!