1Version NEXT:
20000-00-00 Jonas Schäfer <jonas@zombofant.net>
3 * Breaking
4 - The methods of `TextCodec<T>` now have `&self` receivers. This also
5 implies that `#[xml(text(codec = ..))]` now takes expressions instead
6 of type paths.
7
8 Because all implementations provided by `xso` were in fact unit
9 structs, this should not change most invocations, with one exception:
10 The type argument of `Base64` was removed. Replace all `Base64<Foo>`
11 references with `Base64.filtered(Foo)` to update your code.
12
13 This change overall allows for more flexibility in the implementation
14 of text codecs.
15 * Added
16 - Support for child elements in derive macros. Child elements may also
17 be wrapped in Option or Box or in containers like Vec or HashSet.
18 - Support for overriding the names of the types generated by the derive
19 macros.
20 - Support for deriving FromXml and AsXml on enums.
21 - Support for extracting data from child elements without intermediate
22 structs.
23 - Support for collecting all unknown children in a single field as
24 collection of `minidom::Element`, or one unknown child as a
25 `minidom::Element`, or zero or one unknown children as an
26 `Option<minidom::Element>`.
27 - Support for "transparent" structs (newtype-like patterns for XSO).
28 - FromXmlText and AsXmlText are now implemented for jid::NodePart,
29 jid::DomainPart, and jid::ResourcePart (!485)
30 - Support for optional child elements, the presence of which are
31 translated into a boolean (`#[xml(flag)]`).
32 - Generic TextCodec implementation for all base64 engines provided by
33 the base64 crate (if the `base64` feature is enabled).
34 - New `codec` field on `attribute` meta, to support decoding and
35 encoding using any `TextCodec`.
36 - Support for `no_std` usage (the alloc crate is required, though).
37 - Add a PrintRawXml helper struct to be able to display raw xml, useful
38 for debug logs.
39 * Changes
40 - Generated AsXml iterator and FromXml builder types are now
41 doc(hidden), to not clutter hand-written documentation with auto
42 generated garbage (something certain big tech companies could take
43 an example of, honestly).
44
45Version 0.1.2:
462024-07-26 Jonas Schäfer <jonas@zombofant.net>
47 * Added
48 - FromXmlText and AsXmlText are now implemented on char.
49 * Fixed
50 - Docs build on docs.rs now shows feature-gated items.
51
52Version 0.1.1:
532024-07-25 Maxime “pep” Buquet <pep@bouah.net>
54 * Added
55 - Import various text codecs from parsers: FixedHex, ColonSeparatedHex,
56 EmptyAsError.
57
58Version 0.1.0:
592024-07-25 Jonas Schäfer <jonas@zombofant.net>
60 * Initial release of this crate