Skip to content

Using Rust on Windows

Alex Crichton edited this page Apr 11, 2014 · 22 revisions

As of release 0.10, Rust still depends on GCC for platform linker and C runtime libraries, so you will need to install one before installing Rust itself. Follow these instructions to set up the environment, then run the Rust installer.

MinGW

The current recommended way of obtaining Rust's prerequisites is by using the mingw-w64 installers from the mingw-builds project. The official Rust build bots are using such an installer from late March, 2014.

  1. Download and run mingw-builds-install.exe.
  2. Choose installation options: architecture=x32, threads=posix, exceptions=dwarf.
  3. Now just download and run the Rust installer.
  4. Use Rust compiler from mingw-builds terminal (there will be a shortcut in the Start menu), or add <mingw-builds>\mingw32\bin directory to your PATH.
  5. Verify Rust installation at mingw-builds terminal by typing rustc --help

All Categories:

Clone this wiki locally