min-sized-rust
min-sized-rust copied to clipboard
Dynamic linking
Dynamically linking against libstd and possibly other libraries can significantly reduce binary size (even though not overall size).
This has of course the caveat that rust has no stable ABI so everything needs to be compiled with the same compiler version and build flags. But it can still be useful for multi-binary projects that share a lot of code or embedded-linux-builds where recompile-the-world is an acceptable cost.