add a Makefile
[rust-101.git] / src / main.rs
1 // Welcome to Rust-101
2 // ===================
3 //
4 // This is [Rust-101](https://www.ralfj.de/projects/rust-101/), a small tutorial for the [Rust language](http://www.rust-lang.org/).
5 // This is intended to be an interactive, hands-on course: I believe the only way to
6 // *really* learn a language is to write code in it, so you should be coding during
7 // the course. These documents mainly serve as a guide to the teacher, reminding me
8 // what to explain in which order, and making sure I have sample code for all topics
9 // I plan to cover. They may also be helpful as an offline resource, but you're on your
10 // own then.
11 // 
12 // I will assume basic familiarity with programming, and hence not explain the basic
13 // concepts common to most languages. Instead, I will focus on what makes Rust special.
14 //
15 // Prerequisites
16 // -------------
17 //
18 // You will need to have Rust installed, of course. It is available for download on
19 // [the Rust website](http://www.rust-lang.org/). At this point, I plan to restrict
20 // myself to stable Rust, so "Recommended" version is just right.
21 // You can find some more installation instructions in
22 // [the second chapter of The Book](https://doc.rust-lang.org/stable/book/installing-rust.html).
23 // When you are done, running `cargo build` in the root of Rust-101 should successfully compile
24 // all the code.
25 //
26 // Course Content
27 // --------------
28 // 
29 // The actual course is in the partXX.rs files. I suggest you get started with
30 // [the first part](part00.html), or jump directly to where you left off:
31 // 
32 // * [Part 00](part00.html)
33 // * [Part 01](part01.html)
34 #![allow(dead_code)]
35 mod part00;
36 mod part01;
37
38 // To actually run the code of some part (after filling in the blanks, if necessary), 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/)