|
|
@ -2,6 +2,14 @@
|
|
2
|
2
|
|
|
3
|
3
|
[This book.](http://doc.rust-lang.org/1.0.0-beta/book/)
|
|
4
|
4
|
|
|
|
5
|
## Installing rust
|
|
|
6
|
|
|
|
7
|
I use the [recently released](http://blog.rust-lang.org/2015/04/03/Rust-1.0-beta.html)
|
|
|
8
|
beta and installed it with `./install.sh --prefix=$HOME/.local`.
|
|
|
9
|
Because it's insalled in a non-standard location, `LD_LIBRARY_PATH`
|
|
|
10
|
needs to be set to include `$HOME/.local/lib`, or otherwise `rustc` will
|
|
|
11
|
not be able to run.
|
|
|
12
|
|
|
5
|
13
|
## Compiling statically linked binaries
|
|
6
|
14
|
|
|
7
|
15
|
The following assumes you have a `main.rs` and want to get a statically
|