Crates.io | instant-xml-macros |
lib.rs | instant-xml-macros |
version | 0.5.1 |
source | src |
created_at | 2023-02-27 09:54:15.401064 |
updated_at | 2024-10-23 14:12:52.007359 |
description | Procedural macros for instant-xml |
homepage | |
repository | https://github.com/djc/instant-xml |
max_upload_size | |
id | 795827 |
size | 88,775 |
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.
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 to @rsdy and @choinskib for their work on this library, and thanks (of course) to @dtolnay for creating serde.