Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learn to Code with Rust
Bestseller
Highest Rated
Rating: 4.7 out of 5(1,793 ratings)
16,089 students

Learn to Code with Rust

Master the Rust programming language from A-Z. Includes projects, quizzes, and more. Beginners welcome!
Created byBoris Paskhaver
Last updated 2/2026
English

What you'll learn

  • Master programming in Rust, a fast, safe, and powerful language used in web development, command-line tools, blockchain, and many other domains
  • Conquer Rust's ownership model, use references to reduce memory, and learn how the compiler prevents common memory problems
  • Progress from core language fundamentals to advanced features like traits, lifetimes, and closures
  • Understand Rust's core building blocks including structs, enums, hashmaps, and more
  • Learn how to structure larger Rust projects using crates, modules, external dependencies, and more
  • Explore a dynamic curriculum with videos, quizzes, written assignments, coding challenges, and more

Course content

28 sections497 lectures68h 45m total length
  • Intro to Rust3:26

    Welcome to Learn to Code with Rust. Rust is a systems programming language optimized for speed and safety. In this lesson, we'll introduce the language's features, its history, and some fun tidbits about its community.

  • The Rust Compiler5:32

    Source code is the code that we developers write. The Rust compiler is a program that translates our source code into an executable program called a binary or a binary executable. This lesson also offers an introduction to the compiler and general programming advice to reduce your chance of errors.

  • [macOS] Intro to Terminal8:02

    Access the Terminal application, a command-line interface for interacting with the operating system. Learn some basic commands for file system navigation, printing contents, and more.

  • [macOS] Installing XCode Command Line Tools3:17

    XCode Command Line Tools is a dependency (requirement) of installing the Rust compiler. In this lesson, we set up the Command Line Tools through the Terminal.

  • [macOS] Installing Rust3:00

    In this lesson, we'll install Rust on macOS operating systems. The installation also includes the rustup tool for managing Rust and the cargo tool for managing projects.

  • [macOS] Installing Visual Studio Code7:36

    Visual Studio Code (VSCode) is a free text editor for writing source code in various programming languages. In this lesson, we install the text editor and several extensions for Rust development.

  • [macOS] Add VSCode to PATH3:31

    In this lesson, we run a command from VSCode's Command Line Palette to ensure the code command works from the Terminal. We can use code . to open up the current directory.

  • [Windows] Intro to PowerShell8:06

    Access the PowerShell application, a command-line interface for interacting with the operating system. Learn some basic commands for file system navigation, printing contents, and more.

  • [Windows] Find Out Your Windows Operating System1:03

    Windows has 32-bit and 64-bit versions; you'll need to know your operating system version to setup Rust. This video walks you through finding out the version; memorize the value.

  • [Windows] Installing Visual Studio3:56

    In order to setup Rust, we'll need to install Visual Studio, a text editor from Microsoft which includes a dependency called the Visual Studio C++ build tools. This video walks you through the download and installation process.

  • [Windows] Installing Rust4:08

    In this lesson, we'll install Rust on Windows operating systems. The installation also includes the rustup tool for managing Rust and the cargo tool for managing projects.

  • [Windows] Installing Visual Studio Code8:17

    Visual Studio Code (VSCode) is a free text editor for writing source code in various programming languages. In this lesson, we install the text editor and several extensions for Rust development.

  • Updating or Uninstalling Rust with rustup4:13

    Use the rustup tool to download the latest version of Rust, uninstall Rust, and access its documentation in your browser.

  • Install Git1:18

    Git is a version control system for saving the checkpoints of a project. This lesson walks you through the basics of Git including installation.

  • Create Rust Project with Cargo8:15

    The Cargo command-line tool creates a starter Rust project. In this lesson. we create a new project with a src/main.rs file. We also discuss the differences between binary crates and library crates.

  • Hello World14:51

    Hello World is a rite of passage in the programming community; the first goal in any language is to output the text "Hello World" to the screen. In this lesson, we discuss the basic constructs of a Rust program that allow us to accomplish this goal: functions, blocks, the println! macro, parameters, semicolons, and more. We also learn how to use the rust-analyzer's Run button to compile and run the program directly from VSCode.

  • Compiling and Running Rust File from the Terminal8:38

    In this lesson, we compile our Rust project from the command-line using the cargo build command. We then run the executable which will be different between macOS and Windows operating systems.

  • Formatting with rustfmt and cargo fmt3:51

    Use the rustfmt and cargo fmt tools to format the Rust code in a single file vs. a whole Cargo project. Formatting does not change the structure of the code, only its aesthetics.

  • The cargo build Command9:18

    This lesson discusses the two modes of compilation that cargo build can utilize: debug and release. Debug is built for developers debugging while release is built for the final program/end user. We also learn the cargo clean command to delete the compiled executables.

  • The cargo run Command2:00

    Utilize the cargo run command to build and run the source code with a single command.

  • The cargo check Command2:38

    Use the cargo check command to check the source code for violations without compiling the program. The command tends to be faster because of the decreased amount of effort.

  • Comments6:39

    A comment is a line that is ignored by the Rust compiler. Developers use it to leave notes, descriptions, metadata, etc. In this lesson, we introduce the multiple ways to declare comments in Rust.

  • Project0:48

    Test your knowledge of the section's concepts in a project.

  • Project Solution11:12

    See a solution to the previous lesson's project.

  • Download Course Materials1:15

    Download the course materials for the course from GitHub. You can either use the Git command line tools to fetch the content or download the ZIP file manually.

  • Quiz
  • Section Review10:09

    Review the concepts introduced in this section including the Rust compiler, the cargo CLI tool, the main function, comments, and more.

Requirements

  • A Windows, macOS, or Linux computer
  • A modern text editor (Visual Studio Code is installed and used in the course)
  • Persistence and dedication! No previous experience with programming is needed!

Description

Learn to Code with Rust is a comprehensive introduction to programming in Rust, one of the fastest-growing programming languages in the world. Rust powers codebases in companies and products like Amazon, Microsoft, Firefox, Discord, and more. It is used in a variety of disciplines including web development, CLI programs, build tools, and databases.

Over more than 60 hours of video content, we'll tackle the language from A to Z, covering everything you need to know about Rust to be an effective developer.

The course is jam-packed with:

  • 60+ hours of video, with new content added frequently

  • Multiple-choice quizzes

  • Coding challenges and projects

  • Section reviews

Learn to Code with Rust is designed from the ground up to take you from novice to professional. Complete beginners are welcome; no prior experience is needed!  Over 400+ videos, we'll work our way from language fundamentals to advanced features. Topics covered include...

  • Setup & Installation

  • Variables

  • Data types

  • Functions and Methods

  • Control Flow

  • Ownership and References

  • Slices

  • Structs

  • Enums

  • Generics

  • Option and Result Enums

  • Vectors

  • Project Structure

  • Strings

  • Hash Haps

  • Error Handling

  • Traits

  • Lifetimes

  • Closures

  • Iterators

  • Testing

  • Randomness

...and more!

Throughout the entire journey, I'll be coding alongside you step by step in the code editor. You'll also be able to test your knowledge through numerous coding challenges, quizzes, and written assignments.

Rust is known to be a challenging language to learn. For many concepts, I had to browse through different books, articles, and videos to understand what was happening. My hope here is to demystify the concepts and make it easier for new students to learn the language.

Thanks for checking out the course!

Who this course is for:

  • Aspiring programmers interested in learning one of the fastest-growing programming languages in the world
  • Developers who are familiar with another language and curious to see the unique features of Rust