2 ms·
The smallest ELF executable for x86_64 rustc has produced is 138 bytes. You can absolutely get rust code as small as you need, you just have to care enough abou
by steveklabnik 3y ago
The smallest ELF executable for x86_64 rustc has produced is 138 bytes. You can absolutely get rust code as small as you need, you just have to care enough about binary size to put in the work. We do embedded Rust at work, and do care about this.
- kragen 3y agothank you for the update! what options give the 138-byte executable?
- steveklabnik 3y agoOh it was 137, haha. I will link you to this older comment of mine: https://news.ycombinator.com/item?id=29408906 https://news.ycombinator.com/item?id=29408906 See also https://github.com/johnthagen/min-sized-rust https://github.com/johnthagen/min-sized-rust