parsers: add streamable parsing

This adds shims which provide FromXml and IntoXml implementations to
*all* macro-generated types in `xmpp_parsers`. Mind that this does not
cover all types in `xmpp_parsers`, but a good share of them.

This is another first step toward real, fully streamed parsing.
This commit is contained in:
Jonas Schäfer 2024-06-16 10:14:18 +02:00
commit cb3da52ba2
7 changed files with 131 additions and 0 deletions

View file

@ -20,6 +20,11 @@ use of this library in parsing XML streams like specified in RFC 6120.
pub mod error;
pub mod minidom_compat;
#[doc(hidden)]
pub mod exports {
pub use rxml;
}
/// Trait allowing to consume a struct and iterate its contents as
/// serialisable [`rxml::Event`] items.
pub trait IntoXml {