Compiling Rust binaries for Windows 98 SE and more: a journey (2020)
seri.tools
seri.tools
This is a one-time cost per executable. Projects for embedded systems typically disable these features to avoid the costs.
- msvcrt linked statically
- even when disabling debug and panic unwind, Rust includes the unwind tables in the binary
- unicows import library linked
./hello > /dev/full
Does it fail silently? Loudly? Does it pretend everything went well? And most importantly, does it do what it _should_ do, whatever that is?
failed printing to stdout: No space left on device (os error 28)
and if stderr is borked, you still get an exit code 101 (Rust's code for a panic).