Skip to content

Commit be46c47

Browse files
authored
Update quick-xml to 0.41
Bump quick-xml to 0.41 to address the recent RustSec advisories, migrate attribute decoding to the normalized quick-xml API, and prepare the 0.12.9 release.
1 parent 1b31683 commit be46c47

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
## 0.12.9 - 2026-07-03
6+
7+
- Update `quick-xml` to `0.41` and migrate to the normalized quick-xml attribute API. [`#95`](https://github.com/rust-syndication/atom/pull/95)
8+
59
## 0.12.8 - 2026-05-10
610

711
- Enables the parsing of elements defined in another namespace in Person constructs [`#91`](https://github.com/rust-syndication/atom/pull/91)

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "atom_syndication"
3-
version = "0.12.8"
3+
version = "0.12.9"
44
authors = ["James Hurst <jh.jameshurst@gmail.com>"]
55
edition = "2021"
66
description = "Library for serializing the Atom web content syndication format"
@@ -14,7 +14,7 @@ rust-version = "1.83"
1414

1515
[dependencies]
1616
diligent-date-parser = "0.1.3"
17-
quick-xml = { version = "0.39", features = ["encoding"] }
17+
quick-xml = { version = "0.41", features = ["encoding"] }
1818
chrono = { version = "0.4", default-features = false, features = ["alloc"] }
1919
derive_builder = { version = "0.20", optional = true }
2020
serde = { version = "1.0", optional = true, features = ["derive"] }

src/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use quick_xml::{
22
escape::{escape, resolve_predefined_entity},
33
events::{attributes::Attribute, Event},
44
name::QName,
5-
Reader,
5+
Reader, XmlVersion,
66
};
77

88
use crate::error::{Error, XmlError};
@@ -30,7 +30,7 @@ pub(crate) fn attr_value<'s, 'r, B: BufRead>(
3030
reader: &'r Reader<B>,
3131
) -> Result<Cow<'s, str>, Error> {
3232
let value = attr
33-
.decode_and_unescape_value(reader.decoder())
33+
.decoded_and_normalized_value(XmlVersion::default(), reader.decoder())
3434
.map_err(XmlError::new)?;
3535
Ok(value)
3636
}

0 commit comments

Comments
 (0)