|
1 | 1 | # The Rust Programming Language
|
2 | 2 |
|
3 |
| -This is the main source code repository for [Rust]. It contains the compiler, standard library, |
4 |
| -and documentation. |
| 3 | +This is the main source code repository for [Rust]. It contains the compiler, |
| 4 | +standard library, and documentation. |
5 | 5 |
|
6 | 6 | [Rust]: https://www.rust-lang.org
|
7 | 7 |
|
@@ -114,6 +114,19 @@ $ ./configure
|
114 | 114 | $ make && make install
|
115 | 115 | ```
|
116 | 116 |
|
| 117 | +#### MSVC with rustbuild |
| 118 | +
|
| 119 | +For those who don't want the hassle of MSYS or MinGW, you can invoke rustbuild |
| 120 | +directly. All you need are Python 2, CMake, and Git in your PATH (make sure you |
| 121 | +do __not__ use the ones from MSYS!). You'll also need Visual Studio 2013 or |
| 122 | +newer with the C++ tools. Then all you need to do is invoke the appropriate |
| 123 | +vcvars bat file and kick off rustbuild. |
| 124 | +
|
| 125 | +```bat |
| 126 | +CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat" |
| 127 | +python .\src\bootstrap\bootstrap.py |
| 128 | +``` |
| 129 | +
|
117 | 130 | ## Building Documentation
|
118 | 131 |
|
119 | 132 | If you’d like to build the documentation, it’s almost the same:
|
@@ -154,8 +167,8 @@ Snapshot binaries are currently built and tested on several platforms:
|
154 | 167 | You may find that other platforms work, but these are our officially
|
155 | 168 | supported build environments that are most likely to work.
|
156 | 169 |
|
157 |
| -Rust currently needs between 600MiB and 1.5GiB to build, depending on platform. If it hits |
158 |
| -swap, it will take a very long time to build. |
| 170 | +Rust currently needs between 600MiB and 1.5GiB to build, depending on platform. |
| 171 | +If it hits swap, it will take a very long time to build. |
159 | 172 |
|
160 | 173 | There is more advice about hacking on Rust in [CONTRIBUTING.md].
|
161 | 174 |
|
@@ -192,4 +205,5 @@ Rust is primarily distributed under the terms of both the MIT license
|
192 | 205 | and the Apache License (Version 2.0), with portions covered by various
|
193 | 206 | BSD-like licenses.
|
194 | 207 |
|
195 |
| -See [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT), and [COPYRIGHT](COPYRIGHT) for details. |
| 208 | +See [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT), and |
| 209 | +[COPYRIGHT](COPYRIGHT) for details. |
0 commit comments