Cross compile Cargo project to Windows MSVC target with ease
Maintained. Last release 3 months ago, commits in 11 of the last 26 weeks. Weaker on release cadence.
pip install astral-dev-toolchain-cargo-xwinBuild provenance: This package is built and distributed by Astral as part of
astral-dev-toolchain. It packagescargo-xwinfrom tagv0.23.1at commitcb1c19572bd64c801f45c6fc96e234ccb0d5acc5.
cargo-xwin
formerly cargo-xwinbuild
🚀 Help me to become a full-time open-source developer by sponsoring me on GitHub
Cross compile Cargo project to Windows msvc target with ease using xwin or windows-msvc-sysroot.
By using this software you are consented to accept the license at https://go.microsoft.com/fwlink/?LinkId=2086102
Prerequisite
- Install clang (On macOS run
brew install llvmand you're good to go). - For assembly dependencies, install
llvm-toolscomponent viarustup component add llvm-toolsor install llvm.
A full LLVM installation is recommended to avoid possible issues.