XML support
serde doesn't provide very good support for XML. The main reason for this is the complexity of the format. It has so many rules and exceptions that you can't describe the expected format in a simple form. However, there are also some implementations that aren't compatible with serde. The following links explain streaming, reading, and writing XML data: https://crates.io/crates/xml-rs and https://crates.io/crates/quick-xml.
Another format that isn't compatible with the serde infrastructure is Protocol Buffers (https://developers.google.com/protocol-buffers/). Developers often choose this format for performance reasons and to use one scheme of data for different applications. To use this format in Rust code, try to use the protobuf ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access