> [getting started][wiki-start] notes on the wiki.
[installer]: http://www.rust-lang.org/install.html
-[tutorial]: http://static.rust-lang.org/doc/tutorial.html
-[wiki-start]: https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust
-[win-wiki]: https://github.com/mozilla/rust/wiki/Using-Rust-on-Windows
+[tutorial]: http://doc.rust-lang.org/tutorial.html
+[wiki-start]: https://github.com/rust-lang/rust/wiki/Note-getting-started-developing-Rust
+[win-wiki]: https://github.com/rust-lang/rust/wiki/Using-Rust-on-Windows
## Building from Source
1. Make sure you have installed the dependencies:
- * `g++` 4.4 or `clang++` 3.x
+ * `g++` 4.7 or `clang++` 3.x
* `python` 2.6 or later (but not 3.x)
* `perl` 5.0 or later
* GNU `make` 3.81 or later
* `curl`
+ * `git`
2. Download and build Rust:
You can either download a [tarball] or build directly from the [repo].
To build from the [tarball] do:
- $ curl -O http://static.rust-lang.org/dist/rust-nightly.tar.gz
+ $ curl -O https://static.rust-lang.org/dist/rust-nightly.tar.gz
$ tar -xzf rust-nightly.tar.gz
$ cd rust-nightly
Or to build from the [repo] do:
- $ git clone https://github.com/mozilla/rust.git
+ $ git clone https://github.com/rust-lang/rust.git
$ cd rust
Now that you have Rust's source code, you can configure and build it:
When complete, `make install` will place several programs into
`/usr/local/bin`: `rustc`, the Rust compiler, and `rustdoc`, the
API-documentation tool.
- system.
3. Read the [tutorial].
4. Enjoy!
-[repo]: https://github.com/mozilla/rust
-[tarball]: http://static.rust-lang.org/dist/rust-nightly.tar.gz
-[tutorial]: http://static.rust-lang.org/doc/nightly/tutorial.html
+### Building on Windows
+
+To easily build on windows we can use [MSYS2](http://sourceforge.net/projects/msys2/):
+
+1. Grab the latest MSYS2 installer and go through the installer.
+2. Now from the MSYS2 terminal we want to install the mingw64 toolchain and the other
+ tools we need.
+
+ $ pacman -S mingw-w64-i686-toolchain
+ $ pacman -S base-devel
+
+3. With that now start `mingw32_shell.bat` from where you installed MSYS2 (i.e. `C:\msys`).
+4. From there just navigate to where you have Rust's source code, configure and build it:
+
+ $ ./configure --build=i686-pc-mingw32
+ $ make && make install
+
+[repo]: https://github.com/rust-lang/rust
+[tarball]: https://static.rust-lang.org/dist/rust-nightly.tar.gz
+[tutorial]: http://doc.rust-lang.org/tutorial.html
## Notes
There is a lot more documentation in the [wiki].
-[wiki]: https://github.com/mozilla/rust/wiki
+[wiki]: https://github.com/rust-lang/rust/wiki
## License