instant-xml

Crates.ioinstant-xml
lib.rsinstant-xml
version0.5.1
sourcesrc
created_at2023-02-27 09:54:31.610639
updated_at2024-10-23 14:13:03.769734
descriptionA more rigorous way to map XML to Rust types
homepage
repositoryhttps://github.com/djc/instant-xml
max_upload_size
id795828
size92,886
Dirkjan Ochtman (djc)

documentation

https://docs.rs/instant-xml

README

Cover logo

instant-xml: more rigorously mapping XML to Rust types

Documentation Crates.io Build status License: MIT License: Apache 2.0

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.

Commit count: 220

cargo fmt