1
1
Installing Rust
2
2
===============
3
3
4
- Most Rubyists use OS X, and I haven't personally installed Rust on other
5
- platforms yet, so I'm just covering OS X for now. I'll add Windows and
6
- Linux instructions once I've tried them out myself.
4
+ Most Rubyists use OS X, and Rust is pretty easy to get going on it:
7
5
8
6
Mac OS X
9
7
--------
@@ -15,41 +13,42 @@ already use. Just do this:
15
13
16
14
If you don't use Homebrew, install it. Seriously.
17
15
18
- (Note: Homebrew doesn't have 0.7 yet, you can use
19
- brew install --HEAD rust to get master, which is a close approximation
20
- of 0.7 right now)
16
+ (Note: If you're reading this close to release, Homebrew may not have 0.8 yet,
17
+ you can use brew install --HEAD rust to get master, which will be close.)
21
18
22
19
Linux
23
20
-----
24
21
25
- Rust does the Standard Unix Thing.
22
+ I personally use Linux, and Rust works quite well on it. Rust does the Standard
23
+ Unix Thing.
26
24
27
- $ curl -O http://static.rust-lang.org/dist/rust-0.7 .tar.gz
28
- $ tar -xzf rust-0.7 .tar.gz
29
- $ cd rust-0.7
25
+ $ curl -O http://static.rust-lang.org/dist/rust-0.8 .tar.gz
26
+ $ tar -xzf rust-0.8 .tar.gz
27
+ $ cd rust-0.8
30
28
$ ./configure
31
29
$ make
32
30
$ sudo make install
33
31
34
- Most package managers I've checked out either have no package or a
35
- really old package, so you'll probably want to just install from source.
32
+ Most package managers I've checked out either have no package or a really old
33
+ package, so you'll probably want to just install from source.
36
34
37
35
Windows
38
36
-------
39
37
40
- I have not tried to install Rust on Windows, but I hear it works well.
41
- You can use the
42
- [ installer] ( http://static.rust-lang.org/dist/rust-0.7-install.exe ) . You
43
- will need a very specific mingw setup. It's easier to build rust, and
44
- there's instructions on the
38
+ See instructions on the
45
39
[ wiki] ( https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust#windows ) .
40
+ Overall, Rust wants to have strong Windows support, but some of it is in flux,
41
+ and it was decided that the 0.8 release would be a bit wonky. Don't be afraid to
42
+ hop into [ the Rust
43
+ IRC] ( http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust ) and
44
+ ask for help.
46
45
47
46
Future Proofing
48
47
---------------
49
48
50
- The version this book is written for is 0.7. The language has largely
51
- calmed down, so it should be pretty future-proof code. I'll be tweaking
52
- it with every new release.
49
+ The version this book is written for is 0.8.While the language itself is pretty
50
+ stable, things like the standard library and some major subsystems are being
51
+ revised. I'll be tweaking it with every new release.
53
52
54
53
If you run
55
54
0 commit comments