MOCKBA
February 4, 2026, 8:20pm
1
It's just a funny observation that Rust code size is the smallest for the platform I use least:
The platform I use most in my development generates the biggest code. Rust setting to generate the code are equal on all platforms and rustup used to install Rust.
Vorpal
February 4, 2026, 8:56pm
2
Are those statically linked? I wonder what the cause of the size difference is if not something like static vs dynamic.
If you want to shrink rust binary size GitHub - johnthagen/min-sized-rust: 🦀 How to minimize Rust binary size 📦 has a lot of good tips.
1 Like
MOCKBA
February 4, 2026, 11:57pm
3
I use a dynamic linking on Linux. I am not sure about other platforms, because do not use them besides of the app publishing.
Thank you for the link, although size of Rust executable isn't my concern, it may become with keeping prices for storage up.