Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Serialization Formats

Through the previous sections, we have provided a glimpse into serialization and deserializaiton concerns. Now, consider a complex structure type that consists of many varied fields and, possibly, nested data types. You can imagine, however, how quickly serializing and deserializing such a complex datatype may become.

Fortunately, we do not have to reinvent the wheel. We can instead rely on common serialization formats, which many programming languages support either through standard, or third-party libraries. Typical serialization formats are classified into two categories:

The serde crate

The serde crate, is a framework for serializing and deserializing data structures into common formats in Rust. It supports various data formats like JSON, Bincode, CBOR, etc. You will find that we use serde crate to serialize logical query plans as json and tuples as vector in CrustyDB.

Read more about serde crate