Rust Basics and Core Concepts
Ends soon! Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
Rust Basics and Core Concepts
This course is part of Learn to Code with Rust Specialization
Included with
Learn more
Recommended experience
Recommended experience
What you'll learn
Understand the setup and tools for developing in Rust, including installation and setup of necessary software.
Master working with variables, mutability, and data types to manage data in Rust applications.
Build efficient and safe control flow structures using conditionals, loops, and recursion.
Gain hands-on experience with practical projects, demonstrating the core Rust concepts in real-world applications.
Skills you'll gain
Tools you'll learn
Details to know
6 assignments
See how employees at top companies are mastering in-demand skills
Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate
There are 5 modules in this course
This course features Coursera Coach!
A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. Rust is a powerful programming language known for its speed, memory safety, and concurrency features. In this course, you'll gain a solid foundation in Rust, from installation to mastering its syntax and core concepts. By the end of this course, you will be comfortable writing and compiling Rust programs, understanding variables, data types, and control flow mechanisms, and applying these concepts to real-world projects. You'll also explore the essential tools like Cargo for project management and VSCode for efficient coding. The journey begins with setting up your development environment, followed by an in-depth look into variables, mutability, and data types. Youβll learn how to work with different data types such as integers, strings, and booleans and gain an understanding of Rustβs unique features like ownership, borrowing, and pattern matching. The course also covers functions, control flow, and recursion, preparing you to write efficient, clean, and idiomatic Rust code. Ideal for anyone looking to learn systems programming, this course is beginner-friendly, with no prior experience required. Whether you're new to programming or transitioning from another language, this course will help you build a strong understanding of Rust and prepare you for more advanced topics.
In this module, we will introduce you to Rust and guide you through the installation and setup process on both macOS and Windows. You will also learn how to create your first project and run it using various tools like Cargo and Visual Studio Code.
What's included
23 videos2 readings
23 videosβ’Total 143 minutes
- Introduction to the Specializationβ’5 minutes
- The Rust Compilerβ’6 minutes
- [macOS] Intro to Terminalβ’8 minutes
- [macOS] Installing XCode Command Line Toolsβ’3 minutes
- [macOS] Installing Rustβ’3 minutes
- [macOS] Installing Visual Studio Codeβ’8 minutes
- [macOS] Add VSCode to PATHβ’4 minutes
- [Windows] Intro to PowerShellβ’8 minutes
- [Windows] Find Out Your Windows Operating Systemβ’1 minute
- [Windows] Installing Visual Studioβ’4 minutes
- [Windows] Installing Rustβ’4 minutes
- [Windows] Installing Visual Studio Codeβ’8 minutes
- Updating or Uninstalling Rust with rustupβ’4 minutes
- Create Rust Project with Cargoβ’8 minutes
- Hello Worldβ’15 minutes
- Compiling and Running Rust File from the Terminalβ’9 minutes
- Formatting with rustfmt and cargo fmtβ’4 minutes
- The cargo build Commandβ’9 minutes
- The cargo run Commandβ’2 minutes
- The cargo check Commandβ’3 minutes
- Commentsβ’7 minutes
- Project Solutionβ’11 minutes
- Section Reviewβ’10 minutes
2 readingsβ’Total 20 minutes
- Introduction to the Course 'Rust Basics and Core Concepts'β’10 minutes
- Full Specialization Resourcesβ’10 minutes
In this module, we will dive into how to manage variables in Rust, focusing on immutability, mutability, and variable shadowing. Additionally, you'll explore constants, type aliases, and how to handle debugging and errors in Rust effectively.
What's included
13 videos1 assignment
13 videosβ’Total 89 minutes
- Intro to Variablesβ’10 minutes
- Interpolation with Curly Bracesβ’10 minutes
- Positional Arguments to println!β’4 minutes
- Underscore with Variablesβ’2 minutes
- Immutable and Mutable Variablesβ’5 minutes
- Rust Error Codes Indexβ’4 minutes
- Variable Shadowingβ’8 minutes
- Scopesβ’9 minutes
- Constantsβ’7 minutes
- Type Aliasesβ’4 minutes
- Compiler Directivesβ’8 minutes
- Project Solutionβ’10 minutes
- Section Reviewβ’9 minutes
1 assignmentβ’Total 15 minutes
- Variables and Mutability - Assessmentβ’15 minutes
In this module, we will cover Rustβs data types, focusing on their declaration, usage, and formatting. You will explore the language's flexibility in handling various data, including arrays and generics, and practice using traits to display values effectively.
What's included
27 videos1 assignment
27 videosβ’Total 200 minutes
- Intro to Data Typesβ’14 minutes
- Integersβ’8 minutes
- Using _ as Visual Separator for Numbersβ’2 minutes
- The usize and isize Typesβ’3 minutes
- Strings and Raw Stringsβ’10 minutes
- Intro to Methodsβ’9 minutes
- Floating Point Typesβ’7 minutes
- Formatting Floats with Format Specifierβ’4 minutes
- Casting Types with the as Keywordβ’4 minutes
- Math Operationsβ’6 minutes
- Augmented Assignment Operatorβ’6 minutes
- Intro to Booleansβ’6 minutes
- Boolean Inversion with !β’4 minutes
- Equality and Inequality Operatorsβ’8 minutes
- And Logic with &&β’5 minutes
- Or Logic withβ’6 minutes
- The Character Typeβ’8 minutes
- The Array Typeβ’9 minutes
- Reading and Writing Array Elementsβ’8 minutes
- The Display Traitβ’10 minutes
- The Debug Traitβ’6 minutes
- The dbg! Macroβ’5 minutes
- The Tuple Typeβ’7 minutes
- Ranges and Range Iterationβ’9 minutes
- Intro to Genericsβ’12 minutes
- Project Solutionβ’9 minutes
- Section Reviewβ’18 minutes
1 assignmentβ’Total 15 minutes
- Data Types - Assessmentβ’15 minutes
In this module, we will introduce you to functions in Rust, covering everything from defining and using parameters to managing return values. You will gain a clear understanding of function blocks and the unit type in a hands-on project.
What's included
8 videos1 assignment
8 videosβ’Total 50 minutes
- Intro to Functionsβ’6 minutes
- Parameters and Argumentsβ’7 minutes
- Explicit Return Valuesβ’6 minutes
- Implicit Return Valuesβ’2 minutes
- The Unit as a Return Typeβ’3 minutes
- Blocks in Functionsβ’5 minutes
- Project Solutionβ’14 minutes
- Section Reviewβ’5 minutes
1 assignmentβ’Total 15 minutes
- Functions - Assessmentβ’15 minutes
In this module, we will explore Rustβs control flow structures, including conditionals, loops, and pattern matching with match. You will also learn about recursion and how to apply these tools in your projects for robust, efficient code.
What's included
13 videos1 reading3 assignments
13 videosβ’Total 120 minutes
- The if Statementβ’7 minutes
- The else if Statementβ’8 minutes
- The else Statementβ’3 minutes
- Assigning Result of if Statement to Variableβ’6 minutes
- The match Statementβ’10 minutes
- Underscore in a Match Armβ’9 minutes
- The match Statement with Multiple Values and Conditionalsβ’10 minutes
- The loop and break Keywordsβ’9 minutes
- The continue Keywordβ’6 minutes
- While Loopβ’6 minutes
- Recursionβ’12 minutes
- Project Solutionβ’27 minutes
- Section Reviewβ’8 minutes
1 readingβ’Total 10 minutes
- Conclusion to the Course 'Rust Basics and Core Concepts'β’10 minutes
3 assignmentsβ’Total 90 minutes
- Control Flow - Assessmentβ’15 minutes
- Full Course Assessmentβ’60 minutes
- Full Course Practice Assessmentβ’15 minutes
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Instructor
Offered by
Explore more from Software Development
- Status: Free Trial
- Status: Free TrialD
Duke University
Course
- Status: Free Trial
Specialization
Why people choose Coursera for their career
Frequently asked questions
Yes, you can preview the first video and view the syllabus before you enroll. You must purchase the course to access content not included in the preview.
If you decide to enroll in the course before the session start date, you will have access to all of the lecture videos and readings for the course. Youβll be able to submit assignments once the session starts.
Once you enroll and your session begins, you will have access to all videos and other resources, including reading items and the course discussion forum. Youβll be able to view and submit practice assessments, and complete required graded assignments to earn a grade and a Course Certificate.
More questions
Financial aid available,
