build: release 0.4.1 and refresh the dependencies

The workspace moves to 0.4.1 and the helm chart's version and
appVersion follow.

cargo update takes every compatible refresh the index offers (24
patch bumps across the tree). Three direct requirements move a
semver line: reqwest 0.12 to 0.13, quick-xml 0.41 to 0.42, base64
0.22 to 0.23.

reqwest 0.13 gates the query builder behind a feature of its own,
so the claw's dev dependency and both integrations carry query
beside json. The 0.12 line stays in the tree: the published rhema
crates still require it, and semver-incompatible dependencies
coexist where links allows.

quick-xml 0.42 makes LocalName hold a &str and xml10_content
infallible, so the CalDAV multistatus parser drops its from_utf8
unwrap and the map_err on a Result that no longer exists.

rusqlite stays on 0.40. The published rhema-identity 0.4.1 still
requires ^0.40, and libsqlite3-sys declares links = sqlite3, which
the resolver allows exactly once per binary: two versions cannot
coexist the way reqwest's do. The requirement moves when the
published family publishes a rusqlite 0.43 build.

Verified with fmt, clippy -D warnings, and the full workspace test
suite with all features (449 tests).
This commit is contained in:
vhaudiquet committed 2026-11-22 14:22:12 +01:00
1 parent fa135acbc6
commit 4887e1c6d3
7 files changed
+364 -93

No files matched your search

@@ -186,10 +186,9 @@ fn compact_z(at: OffsetDateTime) -> String {
/// namespace URIs the element binds. Matching local names inside a
/// `prop` stat is the pragmatic read every DAV client ships.
fn local_name(name: quick_xml::name::QName<'_>) -> &str {
// The reader was built from a &str, so every borrowed name is
// UTF-8 already; a decoding failure cannot say anything truer than
// "not the element we were looking for".
std::str::from_utf8(name.local_name().into_inner()).unwrap_or("")
// The reader was built from a &str, so a borrowed name is valid
// UTF-8 by construction; no decode step can fail here.
name.local_name().into_inner()
}
/// Pulls every `calendar-data` value out of a 207 multistatus, in
@@ -215,10 +214,8 @@ fn parse_multistatus(xml: &str) -> Result<Vec<String>, CalendarError> {
// where the iCalendar needs CRLF, and an unexpanded
// reference would fold the whole object into one line
// and read as quietly empty.
let decoded = text
.xml10_content()
.map_err(|err| CalendarError::Parse(format!("multistatus text: {err}")))?;
let decoded = unescape(&decoded)
let content = text.xml10_content();
let decoded = unescape(&content)
.map_err(|err| CalendarError::Parse(format!("multistatus text: {err}")))?;
current.push_str(&decoded);
}
@@ -228,9 +225,7 @@ fn parse_multistatus(xml: &str) -> Result<Vec<String>, CalendarError> {
Ok(Some(ch)) => current.push(ch),
// A named entity (`&amp;`): the escape table's.
Ok(None) => {
let raw = reference.xml10_content().map_err(|err| {
CalendarError::Parse(format!("multistatus text: {err}"))
})?;
let raw = reference.xml10_content();
let entity = format!("&{raw};");
let decoded = unescape(&entity).map_err(|err| {
CalendarError::Parse(format!("multistatus text: {err}"))
@@ -243,7 +238,7 @@ fn parse_multistatus(xml: &str) -> Result<Vec<String>, CalendarError> {
}
}
Ok(XmlEvent::CData(text)) if capturing => {
current.push_str(&String::from_utf8_lossy(text.as_ref()));
current.push_str(&text);
}
Ok(XmlEvent::End(element)) => {
if capturing && local_name(element.name()) == "calendar-data" {