Watch the video:
Timestamps:
0:00 - Intro/Explanation
0:12 - Prepare Rust to build for Windows
0:39 - Install Mingw
1:08 - Enable building for Windows in Rust
2:00 - Cross-compiling Rust programs for Windows (Cargo Build)
2:45 - Testing Rust programs for Windows using Wine
If you’ve installed Rust on Linux, you’re likely wondering how to build and distribute exes for Windows. This video shows you how to compile your code for Windows on Arch Linux (or Arch-based distros like EndeavourOS, Manjaro or Arcolinux).
=== Related Content ===
Cross-compile Rust apps for Windows on Linux: Go to post or View on YouTube
Install Rust on Arch (Manjaro, EndeavourOS, ArcoLinux): Go to post or View on YouTube
Install Wine to test Windows apps: Go to post or View on YouTube
Arch Wiki for Cross-compiling Rust: https://wiki.archlinux.org/title/rust