58698f633f
This avoids the need for an expensive clone. Since we switched to AsXml instead of IntoXml, we don't necessarily have to clone the data when building new elements, only when it's absolutely necessary. The clones then happen implicitly in the ItemToEvent iterator used internally. This mostly fixes #86, with the caveat that there's no absolutely cheap test: On success, the entire element will be copied, while on failure, you learn about it rather quickly. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
ChangeLog | ||
README.md |
xso -- serde-like parsing for XML
What’s this?
This crate provides the traits for parsing XML data into Rust structs, and vice versa. You can do things like:
#[derive(FromXml, AsXml)]
#[xml(namespace = "urn:example", name = "element")]
pub struct Foo;
For more information, see its documentation on docs.rs for the latest release or the documentation for the main branch on our servers.
What license is it under?
MPL-2.0 or later, see the LICENSE
file.