Creating a New Project

Hands-on Rust — by Herbert Wolverson (23 / 120)

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 Chapter 2 First Steps with Rust | TOC | Capturing User Input 👉

You created your first project in Starting a New Project with Cargo; however, as a refresher, here are the steps to follow:

  1. Open a terminal/command prompt.
  2. Change the directory to your “Learn Rust” directory. e.g., cd /home/bert/learnrust).
  3. Use Cargo to make a new “treehouse” project: type cargo new treehouse.
  4. Launch your favorite text editor/IDE, and load your new project.

You now have a new “Hello, World” program ready for editing. Let’s add some functionality to make it interactive.

👈 Chapter 2 First Steps with Rust | TOC | Capturing User Input 👉

Hands-on Rust by Herbert Wolverson can be purchased in other book formats directly from the Pragmatic Programmers. If you notice a code error or formatting mistake, please let us know here so that we can fix it.

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.