Announcing cargo-xwinbuild: Cross compile Cargo project to Windows msvc target with ease
Recently I created the cargo-zigbuild project which uses zig as the linker for easier cross compiling. It works well for Linux and macOS targets, but for Windows zig doesn't have a good story for msvc targets right now, so it's limited to Windows gnu targets.
This situation bugs me a lot, and I remembered a blog post about the xwin which makes cross compiling Windows binaries from Linux quite easy, but it requires a lot of manual setup. While using Docker containers make it easier, it's also slower.
So I thought I can try to make another Cargo subcommand which integrates xwin and automates the boring stuffs for you, here comes cargo-xwinbuild: https://github.com/messense/cargo-xwinbuild
Hopefully zig will have better support for msvc targets in the future so that I can merge this little tool into cargo-zigbuild so users don't have to install LLVM beforehand.