hello-rs icon indicating copy to clipboard operation
hello-rs copied to clipboard

Windows version is 80 KB

Open pravic opened this issue 9 years ago • 3 comments

What I'm doing wrong?

cargo build --release

rustc 1.10.0-nightly (2174bd97c 2016-04-14) i686-pc-windows-msvc

pravic avatar Apr 16 '16 07:04 pravic

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.

retep998 avatar Apr 16 '16 07:04 retep998

hello-rs\windows>cargo rustc --release -- -Clink-args="/ENTRY:entry_point /ALIGN:16"

79.5 KB for x86 and 93.5 KB for x64.

pravic avatar Apr 18 '16 19:04 pravic

Bump. For the sake of 5 years anniversary.

pravic avatar Apr 16 '21 10:04 pravic