xmpp-rs/xso
Jonas Schäfer b8af0d8fa2 xmpp_parsers: --features disable-validation
It was broken in multiple ways:

- xso did not honour it: unknown children and attributes would cause a
  parse error even with `--features disable-validation` set on parsers.
  For this, we introduce a new feature flag on xso, `non-pedantic`,
  which defaults unknown children and attributes to discard instead of
  fail.

  Note that individual XSOs can still choose to be always pedantic or
  always lenient by explicitly declaring the intent via the
  `on_unknown_child` and `on_unknown_attribute` metas.

- Many tests in `xmpp_parsers` were broken with `--features
  disable-validation`. They now all pass while *still* being rn with
  `disable-validation` set: In that case, they test that parsing in fact
  succeeds.
2024-12-20 14:50:14 +01:00
..
src xmpp_parsers: --features disable-validation 2024-12-20 14:50:14 +01:00
Cargo.toml xmpp_parsers: --features disable-validation 2024-12-20 14:50:14 +01:00
ChangeLog xso: Implement FromXmlText and AsXmlText for NodePart,DomainPart,ResourcePart 2024-12-18 15:43:09 +00:00
README.md xso: add README files 2024-07-24 16:27:53 +02:00

xso -- serde-like parsing for XML

Whats 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.