#xml #parser #serde

bin+lib rapid-xml

XML parser with focus on speed and deserialization to serde

5 releases

Uses new Rust 2021

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

#880 in Parser implementations

Download history 91/week @ 2022-08-09 78/week @ 2022-08-16 100/week @ 2022-08-23 28/week @ 2022-08-30 31/week @ 2022-09-06 47/week @ 2022-09-13 34/week @ 2022-09-20 39/week @ 2022-09-27 9/week @ 2022-10-04 8/week @ 2022-10-11 15/week @ 2022-10-18 45/week @ 2022-10-25 22/week @ 2022-11-01 27/week @ 2022-11-08 15/week @ 2022-11-15 12/week @ 2022-11-22

86 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

~1–1.7MB
~36K SLoC