Update Rust crate quick-xml to 0.38.0 #364

Merged
renovate merged 1 commits from renovate/quick-xml-0.x into master 2025-07-24 00:21:07 +00:00
Collaborator

This PR contains the following updates:

Package Type Update Change
quick-xml dependencies minor 0.37.5 -> 0.38.0

Release Notes

tafia/quick-xml (quick-xml)

v0.38.0

Compare Source

Significant changes

Now references to entities (as predefined, such as <, as user-defined) reported as a new
Event::GeneralRef.
Caller can parse the content of the entity and stream events from it as it is required by the
XML specification. See the updated custom_entities example!

Implement whitespace behavior in the standard in Deserializer, which says string primitive
types should preserve whitespace, while all other primitives have collapse behavior.

New Features
  • #​863: Add Attributes::into_map_access(&str) and Attributes::into_deserializer() when serialize
    feature is enabled. This will allow do deserialize serde types right from attributes. Both methods
    returns the same type which implements serde's Deserializer and MapAccess traits.
  • #​766: Allow to parse resolved entities as XML fragments and stream events from them.
  • #​766: Added new event Event::GeneralRef with content of general entity.
  • #​766: Added new configuration option allow_dangling_amp which allows to have
    a & not followed by ; in the textual data which is required for some applications
    for compatibility reasons.
  • #​285: Add ability to quick_xml::de::Text to access text with trimmed spaces
Bug Fixes
  • #​868: Allow to have both $text and $value special fields in one struct. Previously
    any text will be recognized as $value field even when $text field is also presented.
  • #​868: Skip text events when deserialize a sequence of items overlapped with text (including CDATA).
  • #​841: Do not strip xml prefix from the attributes when map them to struct fields in Deserializer.
Misc Changes
  • #​863: Remove From<QName<'a>> for BytesStart<'a> because now BytesStart stores the
    encoding in which its data is encoded, but QName is a simple wrapper around byte slice.
  • #​766: BytesText::unescape and BytesText::unescape_with replaced by BytesText::decode.
    Now Text events does not contain escaped parts which are reported as Event::GeneralRef.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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 Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [quick-xml](https://github.com/tafia/quick-xml) | dependencies | minor | `0.37.5` -> `0.38.0` | --- ### Release Notes <details> <summary>tafia/quick-xml (quick-xml)</summary> ### [`v0.38.0`](https://github.com/tafia/quick-xml/blob/HEAD/Changelog.md#0380----2025-06-28) [Compare Source](https://github.com/tafia/quick-xml/compare/v0.37.5...v0.38.0) ##### Significant changes Now references to entities (as predefined, such as `&lt;`, as user-defined) reported as a new `Event::GeneralRef`. Caller can parse the content of the entity and stream events from it as it is required by the XML specification. See the updated `custom_entities` example! Implement whitespace behavior in the standard in `Deserializer`, which says string primitive types should preserve whitespace, while all other primitives have collapse behavior. ##### New Features - [#&#8203;863]: Add `Attributes::into_map_access(&str)` and `Attributes::into_deserializer()` when `serialize` feature is enabled. This will allow do deserialize serde types right from attributes. Both methods returns the same type which implements serde's `Deserializer` and `MapAccess` traits. - [#&#8203;766]: Allow to parse resolved entities as XML fragments and stream events from them. - [#&#8203;766]: Added new event `Event::GeneralRef` with content of [general entity]. - [#&#8203;766]: Added new configuration option `allow_dangling_amp` which allows to have a `&` not followed by `;` in the textual data which is required for some applications for compatibility reasons. - [#&#8203;285]: Add ability to `quick_xml::de::Text` to access text with trimmed spaces ##### Bug Fixes - [#&#8203;868]: Allow to have both `$text` and `$value` special fields in one struct. Previously any text will be recognized as `$value` field even when `$text` field is also presented. - [#&#8203;868]: Skip text events when deserialize a sequence of items overlapped with text (including CDATA). - [#&#8203;841]: Do not strip `xml` prefix from the attributes when map them to struct fields in `Deserializer`. ##### Misc Changes - [#&#8203;863]: Remove `From<QName<'a>> for BytesStart<'a>` because now `BytesStart` stores the encoding in which its data is encoded, but `QName` is a simple wrapper around byte slice. - [#&#8203;766]: `BytesText::unescape` and `BytesText::unescape_with` replaced by `BytesText::decode`. Now Text events does not contain escaped parts which are reported as `Event::GeneralRef`. [#&#8203;285]: https://github.com/tafia/quick-xml/issues/285 [#&#8203;766]: https://github.com/tafia/quick-xml/pull/766 [#&#8203;841]: https://github.com/tafia/quick-xml/issues/841 [#&#8203;863]: https://github.com/tafia/quick-xml/pull/863 [#&#8203;868]: https://github.com/tafia/quick-xml/pull/868 [general entity]: https://www.w3.org/TR/xml11/#gen-entity </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, 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 [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40My4wIiwidXBkYXRlZEluVmVyIjoiNDEuNDMuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
renovate added 1 commit 2025-07-24 00:21:06 +00:00
Update Rust crate quick-xml to 0.38.0
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
6b9455f6ea
renovate scheduled this pull request to auto merge when all checks succeed 2025-07-24 00:21:06 +00:00
renovate merged commit 0548e480b4 into master 2025-07-24 00:21:07 +00:00
renovate deleted branch renovate/quick-xml-0.x 2025-07-24 00:21:07 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pierre/VirtWeb#364
No description provided.