Rust for Beginners / Chapter 1 — Getting started (lessons 1–8) / Lesson 1

Setting up and Hello World

Time needed: about 2 min (estimate)

☆ Read later

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.

Keyboard shortcuts

Keys available in a lesson
KeyAction
[ or Alt + ←Go to the previous lesson
] or Alt + →Go to the next lesson
?Open this list
EscClose this list

The keys do not work while the cursor is in a code editor or an input field.