- Go to your project
$ docker run -it --rm `pwd`:/opt/app rust bash
- Build
$ apt update && apt install mingw-w64 -y
$ rustup update
$ rustup target add x86_64-pc-windows-gnu
$ cargo build --target x86_64-pc-windows-gnu --release
- Wait and pray for it will not build failed. Good luck!