Skip to content

patches to support newer quick-xml #216

@plugwash

Description

@plugwash

I have just updated quick-xml in Debian and patched xcb accordingly.

Code changes were made to address the following changes in quick-xml 0.23

fix: do not unescape CDATA content because it never escaped by design. CDATA event data now represented by its own BytesCData type (tafia/quick-xml#311)

refactor: now Attributes::next() returns a new type AttrError when attribute parsing failed (Mingun/fast-xml#4)

Code changes were made to address the following changes in quick-xml 0.24

tafia/quick-xml#412: Rename methods of Reader:

tafia/quick-xml#393: Now BytesStart::name() and BytesEnd::name() returns QName, and BytesStart::local_name() and BytesEnd::local_name() returns LocalName

tafia/quick-xml#415: Renamed functions for consistency across the API:

tafia/quick-xml#421: All unescaping functions now accepts and returns strings instead of byte slices

tafia/quick-xml#393: Types of Attribute::key and Attr::key() changed to QName

tafia/quick-xml#412: Change read_to_end* and read_text_into to accept QName instead of AsRef<[u8]>

No code changes were needed for quick-xml 0.25 or 0.26

The patches are available at

https://salsa.debian.org/rust-team/debcargo-conf/-/blob/master/src/xcb/debian/patches/quick-xml-0.23.diff

https://salsa.debian.org/rust-team/debcargo-conf/-/blob/master/src/xcb/debian/patches/quick-xml-0.24.diff

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions