O'Reilly logo

Mastering Rust by Vesa Kaihlavirta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, you got acquainted with the standard Rust build tool, Cargo. We took a cursory look at initializing, building, and running the unit tests of your program. There are some tools beyond Cargo that can make the Rust coding experience smoother and safer, such as rustfmt, clippy, and racer. We saw how these may be integrated to a text editor by installing Visual Studio Code's Rusty Code extension. Finally, we founded a project that will be the basis for the game that we'll use to gain more skills.

The next chapter will be about unit testing. We'll start coding the book's project with a non-strict TDD style, finding out test cases where they are easy to find and filling in the implementation.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required