- Its security and memory safety allow developers to create with confidence.
- It has an inclusive and supportive maintainer and contributor community.
- It’s a great choice for developers looking to enhance their professional prospects.
In this article, we look at other reasons why you might want to learn Rust and outline easy ways to get started.
Introduction to Rust
Rust was developed at Mozilla Research back in 2010 “as a more reliable, safer alternative to C++,” explains Pavan Belagatti. “Rust is a static multiparadigm, memory-efficient programming language, focused on speed, security, and performance. It is used to develop game engines, file systems, websites and tools, operating systems, browser components, and much more.”
And, slowly but surely, says Steven J. Vaughan-Nichols, Rust is also making its way into Linux, in large part because of its memory-safety features and inherent security benefits.
Other features that make Rust shine, according to Belagatti, include:
- Excellent documentation
- A user-friendly compiler
If you’re ready to learn Rust, these five easy steps will get you up to speed in no time.
1. Start with the Source
The Rust language website is the best place to start when learning Rust. It offers a wealth of resources, including documentation, information about tools, guidelines for contributors, a users forum, and much more.
2. Read the Book
The Rust Programming Language by Steve Klabnik and Carol Nichols, which is also known simply as “The Book,” is a comprehensive guide for learning Rust, covering topics such as:
- Common programming concepts
- Understanding ownership
- Pattern matching
- Packages, crates, and modules
- Error handling, and more
The book is available for free online, as well as in paperback or as an ebook from No Starch Press.
3. Learn by Example
The following resources will help you get hands-on experience with Rust through examples and exercises:
- Rust By Example — A collection of examples that illustrate Rust concepts and standard libraries.
- Rustlings — Short exercises to help you get used to reading and writing Rust code.
- Rust Cheat Sheet — A quick reference guide covering Rust basics.
4. Watch Videos
Video tutorials for learning Rust are available from many sources. Check out these YouTube channels and other videos to get started:
- Rust YouTube channel
- RustConf 2021 videos
- Ryan Levick’s Intro to Rust series
- Rust Programming Course for Beginners from freeCodeCamp (also available as an article)
5. Attend a Conference
The 8th annual RustConf will take place September 12-15, 2023, in Albuquerque, New Mexico and online for those who are unable to attend in person. The conference offers great opportunities to learn from leaders in the community and build your Rust network.
- Can Rust save the planet? Why, and why not from The Register
- How to Learn Rust from GitHub Gist
- Rustacean Station Podcast
- Rust for Systems Programmers (tutorial for experienced C and C++ programmers) from Nick Cameron
- You Want to Learn Rust but You Don’t Know Where to Start from Towards Data Science
Ready to find a job? Check out the latest job listings at Open Source JobHub.