#parser #xml-parser #xml #serde

bin+lib rapid-xml

XML parser with focus on speed and deserialization to serde

6 releases

0.2.5 Jun 20, 2024
0.2.4 Nov 8, 2021
0.2.3 Nov 17, 2020
0.2.1 Oct 19, 2020

#2698 in Parser implementations

Download history 20/week @ 2024-07-08 54/week @ 2024-09-16 36/week @ 2024-09-23 18/week @ 2024-09-30 20/week @ 2024-10-07 54/week @ 2024-10-14 1/week @ 2024-10-21

106 downloads per month

MIT license

155KB
3K SLoC

Rapid XML

Rapid XML is library for parsing XML. It focuses on performance and deserialization with serde.

This library provides 3 ways of reading XML, each building on top of the previous one:

  • Parser: Low-level parser that quickly turns a stream of bytes from IO Read into a stream of events, such as "start tag", "attribute name", "attribute value", "end tag", ...
  • Deserializer: Consumes events from Parser and constructs any type that is deserializable by serde.
  • TreeDeserializer: Deserializes sequences of (optionally nested) types from XML trees.

lib.rs:

XML deserializer focused on speed and working with sequences in XML trees.

This library provides 3 ways of reading XML, each building on top of the previous one:

  • Parser: Low-level parser that quickly turns a stream of bytes from IO Read into a stream of events, such as "start tag", "attribute name", "attribute value", "end tag", ...
  • Deserializer: Consumes events from Parser and constructs any type that is deserializable by serde.
  • TreeDeserializer: Deserializes sequences of (optionally nested) types from XML trees.

Dependencies

~2–2.8MB
~58K SLoC