Update Rust crate quick-xml to 0.40.0 #43

Merged
redbinder0526 merged 1 commit from renovate/quick-xml-0.x into main 2026-05-13 09:01:54 +02:00
Owner

This PR contains the following updates:

Package Type Update Change
quick-xml dependencies minor 0.39.00.40.0

Release Notes

tafia/quick-xml (quick-xml)

v0.40.0

Compare Source

MSRV bumped to 1.79.

Now quick-xml supports the UTF-16 encoded documents. See the new DecodingReader type.

New Features
  • #​956: Add DecodingReader, a BufRead adapter that auto-detects encoding
    from BOM or XML declaration and transcodes to UTF-8. Enabled by the encoding feature.

  • #​938: Add new enumeration XmlVersion and typified getter BytesDecl::xml_version().

  • #​938: Add new error variant IllFormedError::UnknownVersion.

  • #​371: Add new error variant EscapeError::TooManyNestedEntities.

  • #​371: Improved compliance with the XML attribute value normalization process by adding

    • Attribute::normalized_value()
    • Attribute::normalized_value_with()
    • Attribute::decoded_and_normalized_value()
    • Attribute::decoded_and_normalized_value_with()

    which ought to be used in place of deprecated

    • Attribute::unescape_value()
    • Attribute::unescape_value_with()
    • Attribute::decode_and_unescape_value()
    • Attribute::decode_and_unescape_value_with()

    Deprecated functions now behaves the same as newly added.

Bug Fixes
  • #​938: Use correct rules for EOL normalization in Deserializer when parse XML 1.0 documents.
    Previously XML 1.1. rules was applied.
Misc Changes
  • #​914: Remove deprecated .prefixes(), .resolve(), .resolve_attribute(), and .resolve_element()
    of NsReader. Use .resolver().<...> methods instead.
  • #​938: Now BytesText::xml_content, BytesCData::xml_content and BytesRef::xml_content
    accepts XmlVersion parameter to apply correct EOL normalization rules.
  • #​944: read_text() now returns BytesText which allows you to get the content with
    properly normalized EOLs. To get the previous behavior use .read_text().decode()?.
  • #​956: Bumped MSRV from 1.59 (Feb 2022) to 1.79 (June 2024)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [quick-xml](https://github.com/tafia/quick-xml) | dependencies | minor | `0.39.0` → `0.40.0` | --- ### Release Notes <details> <summary>tafia/quick-xml (quick-xml)</summary> ### [`v0.40.0`](https://github.com/tafia/quick-xml/blob/HEAD/Changelog.md#0400----2026-05-11) [Compare Source](https://github.com/tafia/quick-xml/compare/v0.39.4...v0.40.0) MSRV bumped to 1.79. Now `quick-xml` supports the UTF-16 encoded documents. See the new `DecodingReader` type. ##### New Features - [#&#8203;956]: Add `DecodingReader`, a `BufRead` adapter that auto-detects encoding from BOM or XML declaration and transcodes to UTF-8. Enabled by the `encoding` feature. - [#&#8203;938]: Add new enumeration `XmlVersion` and typified getter `BytesDecl::xml_version()`. - [#&#8203;938]: Add new error variant `IllFormedError::UnknownVersion`. - [#&#8203;371]: Add new error variant `EscapeError::TooManyNestedEntities`. - [#&#8203;371]: Improved compliance with the XML attribute value normalization process by adding - `Attribute::normalized_value()` - `Attribute::normalized_value_with()` - `Attribute::decoded_and_normalized_value()` - `Attribute::decoded_and_normalized_value_with()` which ought to be used in place of deprecated - `Attribute::unescape_value()` - `Attribute::unescape_value_with()` - `Attribute::decode_and_unescape_value()` - `Attribute::decode_and_unescape_value_with()` Deprecated functions now behaves the same as newly added. ##### Bug Fixes - [#&#8203;938]: Use correct rules for EOL normalization in `Deserializer` when parse XML 1.0 documents. Previously XML 1.1. rules was applied. ##### Misc Changes - [#&#8203;914]: Remove deprecated `.prefixes()`, `.resolve()`, `.resolve_attribute()`, and `.resolve_element()` of `NsReader`. Use `.resolver().<...>` methods instead. - [#&#8203;938]: Now `BytesText::xml_content`, `BytesCData::xml_content` and `BytesRef::xml_content` accepts `XmlVersion` parameter to apply correct EOL normalization rules. - [#&#8203;944]: `read_text()` now returns `BytesText` which allows you to get the content with properly normalized EOLs. To get the previous behavior use `.read_text().decode()?`. - [#&#8203;956]: Bumped MSRV from 1.59 (Feb 2022) to 1.79 (June 2024) [#&#8203;371]: https://github.com/tafia/quick-xml/issues/371 [#&#8203;914]: https://github.com/tafia/quick-xml/pull/914 [#&#8203;938]: https://github.com/tafia/quick-xml/pull/938 [#&#8203;944]: https://github.com/tafia/quick-xml/pull/944 [#&#8203;956]: https://github.com/tafia/quick-xml/pull/956 </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTAuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE1MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Update Rust crate quick-xml to 0.40.0
All checks were successful
Build and Test / account (push) Successful in 5m21s
a0ee936adf
redbinder0526 deleted branch renovate/quick-xml-0.x 2026-05-13 09:01:54 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
spacebar/account!43
No description provided.