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, we looked at a few parsing techniques: nom and Chomp. At the time of writing this book, it looks like nom might become some sort of a de facto standard in the Rust community, but it remains to be seen if that's true. nom focuses on efficiency, and some other parser frameworks that are more lax about that may be easier to use. For most usages, the efficiency of the parser is not very important, so an easier library may be a good idea. Be sure to check the current list of parser libraries for updates.

Serde is the de facto standard for writing serialization and deserialization code. We covered a few basic examples of using it and also covered a simple case of writing your own serializer and deserializer. Serde is an ...

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