Rullst AcademyRullst Academy/Lesson
Rust and Rullst on macOS: from zero · Lesson 04 / 06

Your first terminal response

Now the tools become a small creation of yours: a program that responds in the terminal.

Learning paths8 min

Let's discover together

  1. 1

    Choose a study folder where you can create files. Run cargo new hello_academy --vcs none. If that folder exists, choose another name; do not delete an earlier project to repeat the lesson.

  2. 2

    Enter with cd hello_academy and run cargo run. Cargo reads Cargo.toml, compiles src/main.rs and runs the program. The default message is Hello, world!; --vcs none only avoids creating a Git repository at this stage.

  3. 3

    Open src/main.rs in an editor, change only the quoted text in println!, save and run cargo run again. If an error appears, read the first message and check its indicated line.

FROM LESSON TO PRACTICE

A guide to follow at your pace

Read the steps before using the reference below. Commands run in the indicated system’s terminal; signup happens on the official site. Rullst Academy exercises are practice and do not verify your installation or external account.

cargo new hello_academy --vcs none
cd hello_academy
cargo run

Official links and next step

✦
YOUR MISSION

Identify the project folder, the message file and the save-and-run sequence.

Now it's your turn

Discovery workshop

Your first terminal response

Lumi created hello_academy but ran cargo run from the outside folder. The terminal says it cannot find Cargo.toml.
Build your answers and check when you are ready.
A moment to understand

After editing the message, what should you do?

I need a hint

This program responds in your computer’s terminal.

Loading your journey…

Take it with you

Create an invented message, save the file and check the new output.

At your own pace

My files and GitHub

Every lesson can become your own record: code, notes or a practice plan. Saving a file to GitHub is optional and does not change your XP.

Student guide

The editor and downloads open when this lesson is available to your account. Check access below or return to the track map.

Checking your access to this lesson…

Rullstpetbot

AI can make mistakes. Check the lesson material.