Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update direct quick-xml dependency

Manav Rathieeb13ba42744
diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index 214253f791..b3724bf9d8 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -2430,7 +2430,7 @@ dependencies = [
"once_cell",
"ort 2.0.0-rc.4",
"plsfix",
- "quick-xml 0.37.5",
+ "quick-xml 0.41.0",
"regex",
"tempfile",
"thiserror 2.0.18",
@@ -6512,18 +6512,18 @@ checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
[[package]]
name = "quick-xml"
-version = "0.37.5"
+version = "0.39.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "331e97a1af0bf59823e6eadffe373d7b27f485be8748f71471c662c1f269b7fb"
+checksum = "cdcc8dd4e2f670d309a5f0e83fe36dfdc05af317008fea29144da1a2ac858e5e"
dependencies = [
"memchr",
]
[[package]]
name = "quick-xml"
-version = "0.39.4"
+version = "0.41.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cdcc8dd4e2f670d309a5f0e83fe36dfdc05af317008fea29144da1a2ac858e5e"
+checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1"
dependencies = [
"memchr",
]
diff --git a/rust/crates/photos/Cargo.toml b/rust/crates/photos/Cargo.toml
index 3cdc912849..9474ec1442 100644
--- a/rust/crates/photos/Cargo.toml
+++ b/rust/crates/photos/Cargo.toml
@@ -4,7 +4,7 @@ edition = "2024"
[dependencies]
ente-image.workspace = true
-quick-xml = "0.37"
+quick-xml = "0.41"
# The FRB photos bridge calls the SimSIMD symbol exported by usearch 2.21.x.
# Newer usearch releases switched that implementation to numkong symbols.
usearch = "=2.21.4"
diff --git a/rust/crates/photos/src/motion_photo/xmp.rs b/rust/crates/photos/src/motion_photo/xmp.rs
index af44eae6c5..5c86305645 100644
--- a/rust/crates/photos/src/motion_photo/xmp.rs
+++ b/rust/crates/photos/src/motion_photo/xmp.rs
@@ -19,8 +19,8 @@ fn extract_xmp_bounds(source: &[u8]) -> Option<(usize, usize)> {
}
fn parse_xmp_attributes(xml_bytes: &[u8]) -> Result<HashMap<String, String>, MotionPhotoError> {
- use quick_xml::Reader;
use quick_xml::events::Event;
+ use quick_xml::{Reader, XmlVersion};
let xml_buffer = String::from_utf8_lossy(xml_bytes);
let mut reader = Reader::from_str(&xml_buffer);
@@ -43,7 +43,7 @@ fn parse_xmp_attributes(xml_bytes: &[u8]) -> Result<HashMap<String, String>, Mot
}
let value = attribute
- .decode_and_unescape_value(reader.decoder())
+ .decoded_and_normalized_value(XmlVersion::Implicit1_0, reader.decoder())
.map_err(|err| MotionPhotoError::Xml(format!("invalid value: {err}")))?
.to_string();
result.insert(key, value);