I'm moving parts of my Electron app to Rust. My Windows laptop has no Visual Studio on it, and I didn't want to install several gigabytes of Build…
I'm moving parts of my Electron app to Rust. My Windows laptop has no Visual Studio on it, and I didn't want to install several gigabytes of Build Tools (with an admin prompt) just to try it out. So I used the GNU toolchain instead. After one day, two Rust pieces sit on the main branch: a 590 KB command-line binary and a 56 KB WebAssembly module. Neither needed Visual Studio or a MinGW install.
This is what worked, plus the one wall I hit, and when you really do need MSVC. Install without admin rustup-init.exe -y --default-host x86_64-pc-windows-gnu --profile minimal rustup installs into your user folder (%USERPROFILE%\.rustup and .cargo) and adds .cargo\bin to your user PATH, so no admin prompt. --profile minimal gives you rustc, cargo and the standard library. No docs, no clippy, no rustfmt; you can add those later with rustup component add.
What I have now (trimmed): > rustup show Default host: x86_64-pc-windows-gnu installed targets: wasm32-unknown-unknown x86_64-pc-windows-gnu > rustc -V rustc 1.100.1 (20ddd0171 2026-11-25) About 950 MB on disk, including the WebAssembly target. One small thing: a terminal or editor that was already open during the install doesn't see the new PATH. My build script checks ~/.cargo/bin directly for that reason. Why it links without MinGW The GNU toolchain ships its own linker.
Look in lib\rustlib\x86_64-pc-windows-gnu\bin\self-contained and you'll find x86_64-w64-mingw32-gcc.exe, ld.exe and dlltool.exe. Next door, in lib\self-contained, there are 44 files with the C runtime bits and import libraries like libkernel32.a and libws2_32.a. And there's a GCC-WARNING.txt: gcc.exe contained in this folder cannot be used for compiling C files - it is only used as a linker. That's the whole deal. Pure Rust builds and links. C code doesn't compile.
The binaries only import system DLLs. My bridge binary pulls in kernel32, ws2_32, ntdll, msvcrt and bcryptprimitives, all of which ship with Windows. There's no libgcc or libwinpthread DLL to bundle.
This is a source-linked briefing. Read the original report from Dev Community .