Building Tiny Rust Binaries for Embedded Linux
This gets confused right off the bat between file size and mapped size.  The whole "strip" nonsense could have been skipped if the author looked at .text/.data/.rodata (and .bss too -- often the resource you're trying to conserve is RAM and not storage!) sizes instead.Likewise the playing with upx isn't really relevant to a rust article per se.  That's a generic executable compressor that will work with anything.But some stuff here was really interesting.  I honestly had no idea that rust was statically linking its own heap implementation into every binary it created!  Come on, guys, jemalloc isn't even in rust and doesn't benefit from static linkage.  If you're going to distribute your own runtime (and if you're using your own heap, you're distributing your own runtime!) at least distribute it in a shared-by-default way.