/rust_programming

Rust Programming: A Crash Course

Primary LanguageRustMIT LicenseMIT

Rust Programming: A Crash Course

Watching is fun, but you will learn a lot more if you dig in and do some coding! This repository is for you hands-on-learners who are ready to roll.

I use macOS, and that is what I developed this course on. Everything ought to work similarly on major Linux distributions and Windows. Please do the following preparation before the training so you can focus your time on learning Rust. Please contact me ASAP if you have trouble with anything on this page.

Before the training...

Install Rust

Rust 1.32.0 or newer is required for this course! The latest stable version is recommended (1.37.0 at the time this was written).

  • Go to rust-lang.org and click on the Get Started button and follow the instructions to install Rust for your operating system.
    • Please DO NOT install rust via some other package manager. It will probably be a version that is too old.

You should get somewhat similar output if you run commands like the ones below (newer versions are okay). If you already have an old version of Rust installed, then run rustup update to install a newer version.

$ rustc --version
rustc 1.37.0 (eae3437df 2019-08-13)

$ cargo --version
cargo 1.37.0 (9edd08916 2019-08-02)
  • Clone or download this repository to the computer you will be using during the live training.

Prepare to Learn

Please do the following (see the How To Learn Rust page for details on all of these)

  • Choose an IDE (or Editor) and configure it with Rust support and customize it to your liking
  • Choose one place to "find answers" and either introduce yourself (if it's a forum, IRC, etc.) or find the answer to one question you have.
  • Try doing something in Rust! If you don't have a better idea, then just do this:
    • cargo new message
    • cd message
    • cargo run
    • Edit src/main.rs and change the message.
    • cargo run again to see your new message.
  • Check out the descriptions of the tools and books.

Training!

Now you are ready for the training!

Resources

Exercises