kljensen/hello-world-http

Make binary smaller

Closed this issue · 1 comments

Following the directions here I can get get the binary down to about 160kb. But, I can't seem to build that on alpine or Debian aarch64. I keep getting something like the following:

undefined reference to `__floatunsitf'

during the linking phase. Giving up for now. Work is in the "nightly" branch.

For posterity...it turns out that Rust ships std as a binary blob that is included in all executables. If you want to get this out you need to use build-std on nightly. I couldn't do that successfully.

I switched to Zig and was happy with that outcome.