From bac8a558de5b2ee49be5ac0a7febf8c6be0d1b17 Mon Sep 17 00:00:00 2001 From: Calciumdibromid Bot Date: Thu, 29 Dec 2022 11:24:00 +0000 Subject: [PATCH] Update Rust crate quick-xml to 0.27.1 (#1692) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [quick-xml](https://github.com/tafia/quick-xml) | dependencies | minor | `0.26.0` -> `0.27.1` | --- ### Release Notes
tafia/quick-xml ### [`v0.27.1`](https://github.com/tafia/quick-xml/blob/HEAD/Changelog.md#​0271----2022-12-28) [Compare Source](https://github.com/tafia/quick-xml/compare/v0.27.0...v0.27.1) ##### Bug Fixes - [#​530]: Fix an infinite loop leading to unbounded memory consumption that occurs when skipping events on malformed XML with the `overlapped-lists` feature active. - [#​530]: Fix an error in the `Deserializer::read_to_end` when `overlapped-lists` feature is active and malformed XML is parsed [#​530]: https://github.com/tafia/quick-xml/pull/530 ### [`v0.27.0`](https://github.com/tafia/quick-xml/blob/HEAD/Changelog.md#​0270----2022-12-25) [Compare Source](https://github.com/tafia/quick-xml/compare/v0.26.0...v0.27.0) ##### New Features - [#​521]: Implement `Clone` for all error types. This required changing `Error::Io` to contain `Arc` instead of `std::io::Error` since `std::io::Error` does not implement `Clone`. ##### Bug Fixes - [#​490]: Ensure that serialization of map keys always produces valid XML names. In particular, that means that maps with numeric and numeric-like keys (for example, `"42"`) no longer can be serialized because [XML name] cannot start from a digit - [#​500]: Fix deserialization of top-level sequences of enums, like ```xml ``` - [#​514]: Fix wrong reporting `Error::EndEventMismatch` after disabling and enabling `.check_end_names` - [#​517]: Fix swapped codes for `\r` and `\n` characters when escaping them - [#​523]: Fix incorrect skipping text and CDATA content before any map-like structures in serde deserializer, like ```xml unwanted text... ``` - [#​523]: Fix incorrect handling of `xs:list`s with encoded spaces: they still act as delimiters, which is confirmed also by mature XmlBeans Java library - [#​473]: Fix a hidden requirement to enable serde's `derive` feature to get quick-xml's `serialize` feature for `edition = 2021` or `resolver = 2` crates ##### Misc Changes - [#​490]: Removed `$unflatten=` special prefix for fields for serde (de)serializer, because: - it is useless for deserializer - serializer was rewritten and does not require it anymore This prefix allowed you to serialize struct field as an XML element and now replaced by a more thoughtful system explicitly indicating that a field should be serialized as an attribute by prepending `@` character to its name - [#​490]: Removed `$primitive=` prefix. That prefix allowed you to serialize struct field as an attribute instead of an element and now replaced by a more thoughtful system explicitly indicating that a field should be serialized as an attribute by prepending `@` character to its name - [#​490]: In addition to the `$value` special name for a field a new `$text` special name was added: - `$text` is used if you want to map field to text content only. No markup is expected (but text can represent a list as defined by `xs:list` type) - `$value` is used if you want to map elements with different names to one field, that should be represented either by an `enum`, or by sequence of `enum`s (`Vec`, tuple, etc.), or by string. Use it when you want to map field to any content of the field, text or markup Refer to [documentation] for details. - [#​521]: MSRV bumped to 1.52. - [#​473]: `serde` feature that used to make some types serializable, renamed to `serde-types` - [#​528]: Added documentation for XML to `serde` mapping [#​473]: https://github.com/tafia/quick-xml/issues/473 [#​490]: https://github.com/tafia/quick-xml/pull/490 [#​500]: https://github.com/tafia/quick-xml/issues/500 [#​514]: https://github.com/tafia/quick-xml/issues/514 [#​517]: https://github.com/tafia/quick-xml/issues/517 [#​521]: https://github.com/tafia/quick-xml/pull/521 [#​523]: https://github.com/tafia/quick-xml/pull/523 [#​528]: https://github.com/tafia/quick-xml/pull/528 [XML name]: https://www.w3.org/TR/xml11/#NT-Name [documentation]: https://docs.rs/quick-xml/0.27.0/quick_xml/de/index.html#difference-between-text-and-value-special-names
--- ### Configuration ๐Ÿ“… **Schedule**: 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 [Renovate Bot](https://github.com/renovatebot/renovate). Co-authored-by: cabr2-bot Co-authored-by: crapStone Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1692 Reviewed-by: crapStone Co-authored-by: Calciumdibromid Bot Co-committed-by: Calciumdibromid Bot --- crates/load_save/Cargo.toml | 2 +- crates/search/Cargo.toml | 2 +- frontend/src-tauri/Cargo.lock | 8 ++++---- frontend/src-wasm/Cargo.lock | 4 ++-- webserver/Cargo.lock | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/load_save/Cargo.toml b/crates/load_save/Cargo.toml index 272ce9221..b86255abe 100644 --- a/crates/load_save/Cargo.toml +++ b/crates/load_save/Cargo.toml @@ -18,7 +18,7 @@ handlebars = { version = "4.3.6", optional = true } lazy_static = "1.4.0" log = "0.4.17" lopdf = { version = "0.29.0", optional = true } -quick-xml = { version = "0.26.0", features = ["serialize"], optional = true } +quick-xml = { version = "0.27.1", features = ["serialize"], optional = true } regex = { version = "1.7.0", optional = true } serde = { version = "1.0.151", features = ["derive"] } serde_json = { version = "1.0.91", optional = true } diff --git a/crates/search/Cargo.toml b/crates/search/Cargo.toml index 46eb034a8..62d6e5f05 100644 --- a/crates/search/Cargo.toml +++ b/crates/search/Cargo.toml @@ -18,7 +18,7 @@ error-ser = { path = "../error-ser" } futures = { version = "0.3.25", optional = true } lazy_static = "1.4.0" log = "0.4.17" -quick-xml = { version = "0.26.0", optional = true, features = ["serialize"] } +quick-xml = { version = "0.27.1", optional = true, features = ["serialize"] } regex = { version = "1.7.0", optional = true } reqwest = { version = "0.11.13", features = ["json", "native-tls"], default-features = false, optional = true } serde = { version = "1.0.151", features = ["derive"] } diff --git a/frontend/src-tauri/Cargo.lock b/frontend/src-tauri/Cargo.lock index 0a71096d0..70bc3bfef 100644 --- a/frontend/src-tauri/Cargo.lock +++ b/frontend/src-tauri/Cargo.lock @@ -1646,7 +1646,7 @@ dependencies = [ "lazy_static", "log", "lopdf", - "quick-xml 0.26.0", + "quick-xml 0.27.1", "regex", "serde", "serde_json", @@ -2422,9 +2422,9 @@ dependencies = [ [[package]] name = "quick-xml" -version = "0.26.0" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f50b1c63b38611e7d4d7f68b82d3ad0cc71a2ad2e7f61fc10f1328d917c93cd" +checksum = "ffc053f057dd768a56f62cd7e434c42c831d296968997e9ac1f76ea7c2d14c41" dependencies = [ "memchr", "serde", @@ -2743,7 +2743,7 @@ dependencies = [ "error-ser", "lazy_static", "log", - "quick-xml 0.26.0", + "quick-xml 0.27.1", "regex", "reqwest", "serde", diff --git a/frontend/src-wasm/Cargo.lock b/frontend/src-wasm/Cargo.lock index 1555a8c4e..cbf8f5508 100644 --- a/frontend/src-wasm/Cargo.lock +++ b/frontend/src-wasm/Cargo.lock @@ -658,9 +658,9 @@ dependencies = [ [[package]] name = "quick-xml" -version = "0.26.0" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f50b1c63b38611e7d4d7f68b82d3ad0cc71a2ad2e7f61fc10f1328d917c93cd" +checksum = "ffc053f057dd768a56f62cd7e434c42c831d296968997e9ac1f76ea7c2d14c41" dependencies = [ "memchr", "serde", diff --git a/webserver/Cargo.lock b/webserver/Cargo.lock index 45fb426d6..3fb2acd32 100644 --- a/webserver/Cargo.lock +++ b/webserver/Cargo.lock @@ -1154,9 +1154,9 @@ checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" [[package]] name = "quick-xml" -version = "0.26.0" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f50b1c63b38611e7d4d7f68b82d3ad0cc71a2ad2e7f61fc10f1328d917c93cd" +checksum = "ffc053f057dd768a56f62cd7e434c42c831d296968997e9ac1f76ea7c2d14c41" dependencies = [ "memchr", "serde",