- Install target mingw-w64:
brew install mingw-w64 - Add target to rustup:
rustup target add x86_64-pc-windows-gnu - Create
.cargo/config - Add the instructions below to
.cargo/config
[target.x86_64-pc-windows-gnu]
brew install mingw-w64rustup target add x86_64-pc-windows-gnu.cargo/config.cargo/config[target.x86_64-pc-windows-gnu]