8 releases (4 breaking)
0.5.1 | Oct 23, 2024 |
---|---|
0.5.0 | Jun 7, 2024 |
0.4.0 | Oct 25, 2023 |
0.3.2 | Sep 15, 2023 |
0.1.0 | Feb 27, 2023 |
#890 in Parser implementations
491 downloads per month
Used in 2 crates
66KB
2K
SLoC
instant-xml: more rigorously mapping XML to Rust types
instant-xml is a serde-like library providing traits and procedural macros to help map XML to Rust types. While serde is great for formats like JSON, the underlying structure it provides is not a great fit for XML, limiting serde-based tools like quick-xml. instant-xml more rigorously maps the XML data model (including namespaces) to Rust types while providing a serde-like interface.
This library is used in production at Instant Domain Search.
Features
- Familiar serde-like interface
- Full support for XML namespaces
- Avoids copying deserialized data where possible
- Minimum supported Rust version is 1.58
Limitations
instant-xml is still early in its lifecycle. While it works well for our use cases, it might not work well for you, and several more semver-incompatible releases should be expected to flesh out the core trait APIs as we throw more test cases at it. There's also currently not that much documentation.
We'd love to hear your feedback!
Thanks
Thanks to @rsdy and @choinskib for their work on this library, and thanks (of course) to @dtolnay for creating serde.
Dependencies
~0.3–1MB
~22K SLoC