Exercise: Reading a TOML File

Let's go through what you’ve learned in this chapter.

We'll cover the following

This challenge is all about reading data from a TOML file.

Problem statement

You have a TOML file containing data about your library. You need to read the file into Rust and print all book titles.

Coding challenge

We encourage you to try solving it yourself before looking at the solution. We have included data from the library in the Book.toml file.

Get hands-on with 1400+ tech skills courses.