Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Write Your First Program with the Rust Language

via egghead.io

Overview

Rust is a modern language that is close to the metal. It's got the performance of C, but with a more friendly syntax and community.
It's also memory safe, and ensures your applications are bug free by catching errors at compile time instead of runtime.
These features make Rust a great choice for developing code for embedded systems, web servers, and CLI apps. You can even compile Rust into WebAssembly in order to run it in-browser!
But as the saying goes, "before you learn to run, you must learn to walk".
In this course, you will write your first Rust application.
Starting from “Hello World” you’ll quickly move on to learning about Rust’s types, configuration files, and the cargo package manager along with classics like functions, loops, and handling user input.
More Rust-specific concepts like macros and pattern matching will also be introduced.
Check out these community notes for this course on Github.
Next Steps: Basic Types in Rust

Syllabus

  • Install Rust
  • Compile and run a Rust program from scratch
  • Create a Rust package with the Cargo package manager
  • Compile and run a Rust program using Cargo
  • Variables and Mutability in Rust
  • Output multiple variables using println!() in Rust
  • Write and call a function in Rust
  • Understanding basic Ownership and Borrowing in Rust
  • Read user input from stdin in Rust
  • Handle errors with unwrap() in Rust
  • Handle errors in Rust using expect()
  • Handle errors in Rust using Pattern Matching
  • Exit a program using std::process in Rust
  • Create a loop in Rust
  • Make your Rust code more DRY

Taught by

Pascal Precht

Reviews

4.2 rating at egghead.io based on 359 ratings

Start your review of Write Your First Program with the Rust Language

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.