I am working on an IOT project which requires a simple HTTP server to run on OpenWrt Hardware (MIPS, with as little as 8MB flash storage to hold the entire OS). I decided to give Rust a try and knocked up a quick prototype for comparison. Firstly WOW! I though that Nim was a complex language until I tried Rust. Nim is much nicer to work with. But back to the point, the Rust binary has **much less** functionality than the Nim one, so this comparison is a little unfair to Nim:
Note: these prototype binaries are compiled on x86 linux (not the final MIPS target) Build Type| Rust Binary| Nim Binary ---|---|--- Debug| 21,931,536| 876,232 Release| 4,514,752| 482,408 Release (Stripped)| 1,804,712| 391,848 Opt Size (Stripped)| 1,214,784| 277,136 Obviously there are many more things than binary size to consider when choosing a language, but for resource constrained devices, this is a show-stopper for Rust.
