link to some installation instructions
[rust-101.git] / src / main.rs
1 #![allow(dead_code)]
2 // Welcome to Rust-101
3 // ===================
4 //
5 // This is Rust-101, a small tutorial to the [Rust language](http://www.rust-lang.org/).
6 // This is intended to be an interactive, hands-on course: I believe the only way to
7 // *really* learn a language is to write code in it, so you should be coding during
8 // the course. These documents mainly serve as a guide to the teacher, reminding me
9 // what to explain in which order, and making sure I have sample code for all topics
10 // I plan to cover. They may also be helpful as an offline resource, but you're on your
11 // own then.
12 // 
13 // I will assume basic familiarity with programming, and hence not explain the basic
14 // concepts common to most languages. Instead, I will focus on what makes Rust special.
15 //
16 // Prerequisites
17 // -------------
18 //
19 // You will need to have Rust installed, of course. It is available for download on
20 // [the Rust website](http://www.rust-lang.org/). At this point, I plan to restrict
21 // myself to stable Rust, so "Recommended" version is just right.
22 // You can find some more installation instructions in
23 // [the second chapter of The Book](https://doc.rust-lang.org/stable/book/getting-started.html).
24 // When you are done, running `cargo build` in the root of Rust-101 should successfully compile
25 // all the code.
26 //
27 // Course Content
28 // --------------
29 // 
30 // The actual course is in the partXX.rs files. I suggest you get started with
31 // [the first part](part00.html), or jump directly to where you left off:
32 // 
33 // * [Part 00](part00.html)
34 // * [Part 01](part01.html)
35 mod part00;
36 mod part01;
37
38 // To actually run the code after filling in the blanks, simply edit the `main`
39 // function below.
40
41 fn main() {
42     part00::part_main();
43 }
44
45 // Additional material
46 // -------------------
47 // 
48 // There's tons of useful Rust stuff out there, so let me just put links to some
49 // of the most interesting places here:
50 // 
51 // * [The Rust Book](https://doc.rust-lang.org/stable/book/)
52 // * [Rust by Example](http://rustbyexample.com/)
53 // * The [Rust Subreddit](https://www.reddit.com/r/rust/)