Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust does static linking by default, because it's more bulletproof and hard drives are cheap.

If you want tiny binaries using dynamic linking then you can use "rustc -C prefer-dynamic".



Thanks, that brings it down to 9.1KB which is much closer to what I'd expect.

I'm happy it does static linking by default because like you said hard drives are cheap and it's safer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: