#xml-parser #xml #parser #serde

bin+lib rapid-xml

XML parser with focus on speed and deserialization to serde

5 releases

0.2.4 Nov 8, 2021
0.2.3 Nov 17, 2020
0.2.2 Nov 5, 2020
0.2.1 Oct 19, 2020
0.2.0 Oct 13, 2020

#2974 in Parser implementations

27 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
~57K SLoC