In this chapter, we will cover the following recipes:
- Working with CSV
- Serialization basics with Serde
- Working with TOML
- Working with JSON
- Building JSON dynamically
Introduction
Reinventing the wheel doesn't make sense. A great deal of functionality has already been provided by many programs that are more than happy to interact with your program. Of course, this offer is worthless if you're not able to communicate with them.
In this chapter, we are going to look at the most important formats in the Rust ecosystem in order to enable you to comfortably speak with other services.
Working with CSV
A nice and simple way to store uncomplicated and small datasets is CSV. This format is also of interest if you're working with spreadsheet ...