Bump dependencies

This commit is contained in:
Maurus Decimus
2026-06-03 19:57:12 +02:00
parent 838a839290
commit 0fdcdd4f87
17 changed files with 95 additions and 62 deletions

View File

@@ -7,7 +7,7 @@ edition = "2024"
trc = { path = "../trc" }
types = { path = "../types" }
hashify = "0.2.6"
quick-xml = { version = "0.39" }
quick-xml = "0.40"
calcard = { version = "0.3", features = ["rkyv"] }
mail-parser = { version = "0.11", features = ["full_encoding", "rkyv"] }
hyper = "1.6.0"

View File

@@ -7,7 +7,7 @@
use super::{Error, RawElement, Token, UnexpectedToken, XmlValueParser};
use crate::schema::{Attribute, AttributeValue, Element, NamedElement, Namespace};
use quick_xml::{
NsReader,
NsReader, XmlVersion,
events::{Event, attributes::AttrError},
name::ResolveResult,
};
@@ -46,7 +46,7 @@ impl<'x> Tokenizer<'x> {
}
Event::Text(text) if text.iter().any(|ch| !ch.is_ascii_whitespace()) => {
return text
.xml_content()
.xml_content(XmlVersion::Implicit1_0)
.map(Token::Text)
.map_err(|err| Error::Xml(Box::new(err.into())));
}
@@ -66,7 +66,7 @@ impl<'x> Tokenizer<'x> {
);
return entity
.xml_content()
.xml_content(XmlVersion::Implicit1_0)
.map(Token::Text)
.map_err(|err| Error::Xml(Box::new(err.into())));
}
@@ -282,7 +282,7 @@ impl RawElement<'_> {
&self,
) -> impl Iterator<Item = super::Result<Attribute<T>>> + '_ {
self.element.attributes().filter_map(|attr| match attr {
Ok(attr) => match attr.unescape_value() {
Ok(attr) => match attr.normalized_value(XmlVersion::Implicit1_0) {
Ok(value) => Attribute::from_param(attr.key.as_ref(), value).map(Ok),
Err(err) => Some(Err(err.into())),
},