Rust Cross-Compile for Windows on Linux | Arch/Manjaro/EndeavourOS

Published: 09 March 2024
on channel: TroubleChute Linux
1,214
32

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:    • Rust Cross-Compile for Windows on Lin...  
Install Rust on Arch (Manjaro, EndeavourOS, ArcoLinux):    • Install Rust & Mold (+ Quick Start Gu...  
Install Wine to test Windows apps:    • Install Wine + WineGUI on Linux | Arc...  

Arch Wiki for Cross-compiling Rust: https://wiki.archlinux.org/title/rust...

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

#Rust #Arch #Programming
-----------------------------
💸 Found this useful? Help me make more! Support me by becoming a member:    / @troublechute  
-----------------------------
💸 Support me on Patreon:   / troublechute  
💸 Direct donations via Ko-Fi: https://ko-fi.com/TCNOco
💬 Discuss the video & Suggest (Discord): https://s.tcno.co/Discord
👉 Game guides & Simple tips:    / troublechutebasics  
🌐 Website: https://tcno.co
📧 Need voiceovers done? Business query? Contact my business email: TroubleChute (at) tcno.co
-----------------------------
🎨 My Themes & Windows Skins: https://hub.tcno.co/faq/my-windows/
👨‍💻 Software I use: https://hub.tcno.co/faq/my-software/
➡️ My Setup: https://hub.tcno.co/faq/my-hardware/
🖥️ My Current Hardware:
Intel i9-13900k - https://amzn.to/42xQuI1
GIGABYTE Z790 AORUS Master - https://amzn.to/3nHuBHx
G.Skill RipJaws 2x(2x32G) [128GB] - https://amzn.to/42cilxN
Corsair H150i 360mm AIO - https://amzn.to/42cznvP
MSI 3080Ti Gaming X Trio - https://amzn.to/3pdnLdb
Corsair 1000W RM1000i - https://amzn.to/42gOTGY
Corsair MP600 PRO XT 2TB - https://amzn.to/3NSvwzx
🎙️ My Current Mic/Recording Gear:
Shure SM7B - https://amzn.to/3nDGYo1
Audient iD14 - https://amzn.to/3pgf2XK
dbx 286s - https://amzn.to/3VNaq7O
Triton Audio FetHead - https://amzn.to/3pdjIgZ

Everything in this video is my personal opinion and experience and should not be considered professional advice. Always do your own research and ensure what you're doing is safe.


Watch video Rust Cross-Compile for Windows on Linux | Arch/Manjaro/EndeavourOS online without registration, duration hours minute second in high quality. This video was added by user TroubleChute Linux 09 March 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,214 once and liked it 32 people.