hello-rs
hello-rs copied to clipboard
Windows version is 80 KB
What I'm doing wrong?
cargo build --release
rustc 1.10.0-nightly (2174bd97c 2016-04-14) i686-pc-windows-msvc
Did you read the readme?
It specifically mentions using cargo rustc --release -- -Clink-args="/ENTRY:entry_point /ALIGN:16"
Those linker arguments are rather important.
hello-rs\windows>cargo rustc --release -- -Clink-args="/ENTRY:entry_point /ALIGN:16"
79.5 KB for x86 and 93.5 KB for x64.
Bump. For the sake of 5 years anniversary.