Optimizing Rust Binary Size for Fun
Details
A Rust "Hello, world" in a default release build is 439 KB. The same program in C is 14 KB. This talk starts with a short ELF primer to show what fills that space. Then it uses compiler and profile settings and feature flags to make a real-world binary 90% smaller. It ends with no_std tricks that get Hello World to 1.9 KB, and with the settings to use in production.
Speaker: Oğuz Bilgener
Location: Invest Ottawa @ Bayview Yards
Venue Limit: 26
Location, pizza and drinks sponsored by Devolutions. One ecosystem for everything your IT team manages.
If the meetup RSVP is full, there are alternative methods of RSVP'ing that may not be:
https://www.ottawa-rust.ca/events/2026-11-26-optimizing-rust-binary-size
