Jonas Schäfer
c0262fbafb
xso: add support for attribute-switched enums
...
skip-changelog, because enums have been introduced in the same release,
so this is merely an addition to the already changelogged enum feature.
2025-04-27 18:34:48 +00:00
Jonas Schäfer
d9a21dd8c9
Track xml:lang throughout parsing
2025-04-22 17:55:44 +02:00
Jonas Schäfer
8e81c41f59
xso: add support for post-deserialization callback
2025-04-18 10:49:26 +02:00
Maxime “pep” Buquet
4994ac20f9
xso-proc: clippy run
...
Caught a bug hidden behind #[cfg(not(feature = "minidom"))]
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2025-04-08 12:47:56 +02:00
Jonas Schäfer
b05ee0280a
xso: add support for selectively discarding text and attributes
2025-04-06 08:36:15 +02:00
Jonas Schäfer
beae4ae66b
xso: fix no_std support
...
This reverts the Revert in 6ec275d3 which had to be done in order to
un-break usage of xso in std crates.
2025-01-26 15:07:17 +00:00
Jonas Schäfer
6ec275d381
Revert "xso-proc: Replace std stuff with alloc/core stuff"
...
This reverts commit 4e5f0bc961 .
Unfortunately, in std contexts, the `alloc` crate is not imported. That
means we cannot rely on it being accessible and it in fact breaks builds
of crates which are not `no_std`.
Fixes #155 .
2025-01-20 17:52:35 +01:00
4e5f0bc961
xso-proc: Replace std stuff with alloc/core stuff
2024-12-19 20:51:56 +01:00
Jonas Schäfer
66233b0150
xso: add support for ignoring unknown children
2024-10-26 17:37:32 +00:00
Jonas Schäfer
290460ba9d
xso: add support for ignoring unknown attributes
2024-10-26 17:37:32 +00:00
Jonas Schäfer
fb80bb7532
xso: add support for dynamic enums
2024-08-08 15:25:40 +00:00
Jonas Schäfer
b36d1d0d4c
xso-proc: refactor enum handling
...
This will allow other kinds of enumerations in the future more
easily.
2024-08-08 15:25:40 +00:00
Jonas Schäfer
fda4a9ff29
xso: implement transparent structs
2024-08-05 15:13:39 +00:00
Jonas Schäfer
df63c2a78f
xso: allow omission of namespace and name on extracts
...
This is a quality-of-life improvement, as it may save lots of typing in
the common case (see the diff in parsers).
2024-08-03 15:25:46 +02:00
Jonas Schäfer
2c5f1f096b
xso: implement support for extracting data from child elements
2024-08-03 15:17:30 +02:00
Jonas Schäfer
e0de035448
xso-proc: deduplicate parsing of namespace / name keys
2024-08-03 15:17:30 +02:00
Jonas Schäfer
c028c3b91a
xso: implement exhaustive enums
...
These more closely mirror how enums work currently with the macros.
Non-exhaustive enums may be useful though and kind of were the natural
thing to implement.
2024-08-03 12:19:28 +02:00
Jonas Schäfer
cf617e4d7e
xso-proc: ensure that all meta keys are handled
...
See inline comments for the rationale.
2024-08-02 07:43:51 +02:00
Jonas Schäfer
4845715add
xso: implement support for enums
2024-08-01 15:28:22 +02:00