https://github.com/thunderbird/xml-struct-rs
https://github.com/thunderbird/xml-struct-rs
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thunderbird/xml-struct-rs
- Owner: thunderbird
- License: mpl-2.0
- Created: 2024-01-25T16:23:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T16:56:34.000Z (over 1 year ago)
- Last Synced: 2025-06-14T06:05:47.004Z (12 months ago)
- Language: Rust
- Size: 42 KB
- Stars: 18
- Watchers: 8
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `xml_struct`
The `xml_struct` crate is intended to provide simple, flexible, low-boilerplate
serialization of Rust data structures to XML.
## Limitations
In its current iteration, this project makes several behavioral assumptions
which make it unsuitable for general use. Primary among these are that
transformation of field/structure names to XML tag names is not configurable
(all names are transformed to PascalCase) and whether fields are serialized as
XML elements or attributes by default is not configurable.
Deserialization is likewise not supported at this time.
Due to the listed limitations, `xml_struct` is not currently published to
crates.io and no support is offered at this time. These limitations may be
addressed at a later time if there is general interest in this crate or if
workload allows.
For general-purpose XML serialization or deserialization, one of these crates
may better suit your needs at this time:
- [`xmlserde`](https://github.com/imjeremyhe/xmlserde)
- [`yaserde`](https://github.com/media-io/yaserde)