Re:Show HN: Tiny 1k Rust binary on Windows
by quietbritishjim on Tuesday December 01, 2020 @06:10AM
(#25264227)
That contains a lot of platform-specific build instructions for Linux (and for the ELF file format used on Linux but not Windows), so it's never going to work with the msvc toolchain.
Re:Show HN: Tiny 1k Rust binary on Windows
by stephen82 on Tuesday December 01, 2020 @07:06AM
(#25264485)
For some reason, I saw ELF as EXE! hahaha ^_^
My bad everyone, my bad!
Re:Show HN: Tiny 1k Rust binary on Windows
by mcountryman on Tuesday December 01, 2020 @08:47AM
(#25265048)
I linked these guys here https://github.com/pts/pts-tinype. They managed to do something similar with the PE headers, and I might have to try that next although I'm doubtful win64 exes are permitted to run if they are >1Kb
Can you test it and see how it behaves with msvc toolchain?