Take your first steps with Rust
- Offered byMicrosoft
Take your first steps with Rust at Microsoft Overview
Duration | 5 hours |
Start from | Start Now |
Total fee | Free |
Mode of learning | Online |
Schedule type | Self paced |
Difficulty level | Beginner |
Official Website | Explore Free Course |
Credential | Certificate |
Take your first steps with Rust at Microsoft Course details
- What is Rust
- Set up the Rust development environment
- Create your first Rust program
- Test conditions with if/else expressions in Rust
- Use loops to iterate through data in Rust
- Handle errors in Rust
- Understand how Rust manages memory
- Implement generic types and traits
- Explore modules, packages, and third-party crates
- Write automated tests
- Build a command-line to-do list program
- In this learning path, you'll: Install the tools you need to write your first lines of Rust code, Learn basic concepts in Rust, Learn how to handle errors.
- Manage memory in Rust, Use generic types and traits, Set up modules for packages and crates, Write and run automated tests, Create a command-line program
- Learn how to set up the Rust development environment, write a program, and use the Cargo build system
- Learn about Rust concepts, including variables, data types, and functions
Take your first steps with Rust at Microsoft Curriculum
What is Rust
Introduction
What is Rust?
Unique features of Rust
The Rust playground
Exercise
Summary
Set up the Rust development environment
Introduction
Install Visual Studio Code
Install Visual C++ build tools
Install Rust
Exercise: Hello World
Summary
Create your first Rust program
Introduction
Understand the basic Rust program structure
Create and use variables in Rust
Explore data types for numbers, text, and true/false values
Define data collections by using tuples and structs
Use enum variants for compound data
Work with functions in Rust
Exercise: Write a function to build a car
Summary
Test conditions with if/else expressions in Rust
Introduction
Create and use arrays
Explore the vector data type
Exercise: Work with compound types
Use if/else conditions
Exercise: Work with if/else conditions
Summary
Use loops to iterate through data in Rust
Introduction
Work with hash maps
Exercise: Use a hash map to track orders
Use for, while, and loop expressions
Exercise: Use a loop to iterate on data
Summary
Handle errors in Rust
Introduction
Learn about fatal errors with panic!
Use the Option type to deal with absence
Exercise - Use the Option type to deal with absence
Use the Result type to handle errors
Exercise - Use the Result type to handle errors
Knowledge check
Summary
Understand how Rust manages memory
Introduction
What is ownership?
Learn about borrowing
Validate references by using lifetimes
Exercise - Lifetimes
Knowledge check
Summary
Implement generic types and traits
Introduction
What are generic data types?
Define shared behavior with traits
Use the derive trait
Use trait bounds and generic functions
Use iterators
Exercise - Implement a generic type
Exercise - Implement an iterator
Knowledge check
Summary
Explore modules, packages, and third-party crates
Introduction
Understand concepts behind code organization
Split code into modules
Separate modules into different files
Add third-party crates to your project
Exercise - Visibility
Exercise - Modules
Knowledge check
Summary
Write automated tests
Introduction
Write unit tests
Exercise - Write unit tests
Write documentation tests
Exercise - Write documentation tests
Write integration tests
Knowledge check
Summary
Build a command-line to-do list program
Introduction
Outline the application
Create the CLI module
Create the tasks module
Write a function that adds tasks
Write a function that completes tasks
Write a function that prints tasks
Complete the main module
Use a default journal file to store tasks
Display friendly error messages
Knowledge check
Summary