Chapter 2 First Steps with Rust

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

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 Wrap-Up | TOC | Creating a New Project 👉

In the previous chapter, you installed Rust, set up a comfortable development environment, and examined the “Hello, World” program. This chapter pushes you further into Rust development as you build a program designed to assist your security team at a swanky new treehouse. In building this program, you’ll learn to accept input from the keyboard, store data in variables, store collections of variables in arrays and vectors, and begin to learn the power of Rust iterators and enumerations.

It’s going to be a whirlwind tour as this chapter introduces a lot of concepts, but hang in there — you’re in for a real treat. (And don’t worry if you don’t remember everything you read here; the more you use Rust, the more you’ll remember how it works.)

You’ll get started by creating a new project, which you’ll use throughout this chapter, gradually adding functionality as you learn more Rust.

👈 Wrap-Up | TOC | Creating a New Project 👉

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.