From 88f972493c67c9028a96d37b56dd091cdac7b192 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 2 Jul 2026 13:34:35 +0200 Subject: [PATCH 1/3] Upgrade to quick-xml 0.41 --- Cargo.toml | 2 +- src/util.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9f34ec9..d19f365 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ rust-version = "1.83" [dependencies] diligent-date-parser = "0.1.3" -quick-xml = { version = "0.39", features = ["encoding"] } +quick-xml = { version = "0.41", features = ["encoding"] } chrono = { version = "0.4", default-features = false, features = ["alloc"] } derive_builder = { version = "0.20", optional = true } serde = { version = "1.0", optional = true, features = ["derive"] } diff --git a/src/util.rs b/src/util.rs index 15ece0f..08415dc 100644 --- a/src/util.rs +++ b/src/util.rs @@ -2,7 +2,7 @@ use quick_xml::{ escape::{escape, resolve_predefined_entity}, events::{attributes::Attribute, Event}, name::QName, - Reader, + Reader, XmlVersion, }; use crate::error::{Error, XmlError}; @@ -30,7 +30,7 @@ pub(crate) fn attr_value<'s, 'r, B: BufRead>( reader: &'r Reader, ) -> Result, Error> { let value = attr - .decode_and_unescape_value(reader.decoder()) + .decoded_and_normalized_value(XmlVersion::default(), reader.decoder()) .map_err(XmlError::new)?; Ok(value) } From 6df5fd0da3c64d58f814993f672b0c043e15510e Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 2 Jul 2026 13:34:46 +0200 Subject: [PATCH 2/3] Bump version to 0.12.9 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d19f365..bb9f8c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "atom_syndication" -version = "0.12.8" +version = "0.12.9" authors = ["James Hurst "] edition = "2021" description = "Library for serializing the Atom web content syndication format" From 52b6e75f9f182881f4803c76b8a1e154d369fb73 Mon Sep 17 00:00:00 2001 From: DCjanus Date: Fri, 3 Jul 2026 01:36:50 +0800 Subject: [PATCH 3/3] docs: update changelog for 0.12.9 Assisted-by: Codex:gpt-5.5 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c689031..f6aece6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +## 0.12.9 - 2026-07-03 + +- Update `quick-xml` to `0.41` and migrate to the normalized quick-xml attribute API. [`#95`](https://github.com/rust-syndication/atom/pull/95) + ## 0.12.8 - 2026-05-10 - Enables the parsing of elements defined in another namespace in Person constructs [`#91`](https://github.com/rust-syndication/atom/pull/91)