- Install Rust: https://www.rustup.rs/
- NOTE the
other-installation-methods
link, I recommend not piping the internet into your shell
- NOTE the
- Install rustfmt
rustup component add rustfmt-preview
- For code completion, install racer https://github.com/racer-rust/racer
- For linting, install clippy
cargo +nightly install clippy
- NOTE: change your editor’s clippy command to
cargo +nightly clippy
to ensure that clippy also works in stable
- NOTE: change your editor’s clippy command to
- The Book - https://doc.rust-lang.org/book/first-edition/
- Standard Library - https://doc.rust-lang.org/std/
- Packages - https://crates.io/
- Illustration of Rust’s ownership model - https://rufflewind.com/2017-02-15/rust-move-copy-borrow
- Choose your guantantees - https://doc.rust-lang.org/book/first-edition/choosing-your-guarantees.html
- Performance pitfalls - https://llogiq.github.io/2017/06/01/perf-pitfalls.html
- Best-effort Rust version of Shae’s Haskell introduction
- Shae’s haskell here: https://github.com/shapr/BookWords/blob/master/app/Main.hs
- Blades’s rust here: https://github.com/christian-blades-cb/wordcount-from-scratch
- Wordcount
- The prepared version https://github.com/christian-blades-cb/bookwords-rs
- The one we made live in class https://github.com/christian-blades-cb/wordcount-from-scratch
- Shortest path to NSFW (current series)