Just wanted to let people here know that this exists now: https://github.com/rust-lang/rust/issues/125612 A flag for the core/std library to optimize for size. If you want to contribute to the compiler, this is a really easy thing to work on! And it helps everybody who wants smaller binaries (which is all of us I imagine)