




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































build passing contributors 345 stars 33k
This is a free Rust course developed by the Android team at Google. The course covers the full spectrum of Rust, from basic syntax to advanced topics like generics and error handling. The latest version of the course can be found at https://google.github.io/ comprehensive-rust/. If you are reading somewhere else, please check there for updates. The course is available in other languages. Select your preferred language in the top right corner of the page or check the Translations page for a list of all available translations. The course is also available as a PDF. The goal of the course is to teach you Rust. We assume you don't know anything about Rust and hope to:
We call the first four course days Rust Fundamentals.
Building on this, you're invited to dive into one or more specialized topics:
Non-Goals
Rust is a large language and we won't be able to cover all of it in a few days. Some non-goals of this course are:
Assumptions
The course assumes that you already know how to program. Rust is a statically-typed language and we will sometimes make comparisons with C and C++ to better explain or contrast the Rust approach.
If you know how to program in a dynamically-typed language such as Python or JavaScript, then you will be able to follow along just fine too.
This is an example of a speaker note. We will use these to add additional information to the slides. This could be key points which the instructor should cover as well as answers to typical questions which come up in class.
and offer a solution, e.g., by showing people where to find the relevant information in the standard library.
That is all, good luck running the course! We hope it will be as much fun for you as it has been for us!
Please provide feedback afterwards so that we can keep improving the course. We would love to hear what worked well for you and what can be made better. Your students are also very welcome to send us feedback!
1.1 Course Structure
This page is for the course instructor.
The first four days make up Rust Fundamentals. The days are fast-paced and we cover a broad range of topics!
Course schedule:
Segment Duration
Welcome 5 minutes Hello, World 15 minutes Types and Values 40 minutes
Segment Duration Control Flow Basics 45 minutes
Segment Duration Tuples and Arrays 35 minutes References 55 minutes User-Defined Types 1 hour
Segment Duration
Welcome 3 minutes Pattern Matching 50 minutes Methods and Traits 45 minutes Generics 50 minutes
Segment Duration Closures 30 minutes Standard Library Types 1 hour Standard Library Traits 1 hour
Segment Duration Welcome 3 minutes Memory Management 1 hour Smart Pointers 55 minutes
Segment Duration Borrowing 1 hour and 15 minutes Lifetimes 1 hour and 5 minutes
Segment Duration Welcome 3 minutes