diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..c08f9add7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +_site \ No newline at end of file diff --git a/_config.yml b/_config.yml new file mode 100644 index 000000000..d4bacfa14 --- /dev/null +++ b/_config.yml @@ -0,0 +1,2 @@ +name: The Rust Programming Language +markdown: redcarpet diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 000000000..a35e78343 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,61 @@ + + +
+ +- Rust is a systems programming language - that runs blazingly fast, - prevents almost all crashes*, - and eliminates data races. -
- -+ Rust is a systems programming language + that runs blazingly fast, + prevents almost all crashes*, + and eliminates data races. +
+fn main() { - // A simple integer calculator: - // `+` or `-` means add/sub by 1 - // `*` or `/` means mul/div by 2 + // A simple integer calculator: + // `+` or `-` means add/sub by 1 + // `*` or `/` means mul/div by 2 - let program = "+ + * - /"; - let mut accumulator = 0; + let program = "+ + * - /"; + let mut accumulator = 0; - for token in program.chars() { - match token { - '+' => accumulator += 1, - '-' => accumulator -= 1, - '*' => accumulator *= 2, - '/' => accumulator /= 2, - _ => { /* ignore everything else */ } - } + for token in program.chars() { + match token { + '+' => accumulator += 1, + '-' => accumulator -= 1, + '*' => accumulator *= 2, + '/' => accumulator /= 2, + _ => { /* ignore everything else */ } } + } - println!("The program \"{}\" calculates the value {}", - program, accumulator); + println!("The program \"{}\" calculates the value {}", + program, accumulator); }-
- * - In theory. Rust is a work-in-progress and may do anything it likes up to and including eating your laundry. -
-- - Additional resources - , including release notes, signatures, previous releases. -
-+ The current dev branch. + This is the most up to date version with the latest bug fixes and features. +
++ The latest release. + These are made roughly every three months and become out of date quickly. +
++ + Additional resources – including release notes, signatures, previous releases. +
+