Rust for Beginners / Chapter 1 — Getting started (lessons 1–8) / Lesson 1
Setting up and Hello World
Time needed: about 2 min (estimate)
Reading settings
These settings are remembered on this device only.
You can try the opening of this lesson without an account.
What kind of language Rust is
Rust is a language that manages two things which normally cannot coexist: fast execution and memory safety at the same time.
Instead of a garbage collector, it checks how memory is handled at compile time through a mechanism called ownership.
It is used widely — CLI tools, web backends, embedded systems — and whichever direction you go, the underlying syntax is the same.
Installing everything with rustup
Installation goes through the official installer, rustup.
That single thing brings you both the compiler rustc and cargo, which handles building and package management.
On macOS and Linux run the following in a terminal; on Windows use rustup-init.exe from the official site.
Create a free account to keep reading
With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.
Report a problem with this lesson
Log in to send a report.