Update matrix-sdk to v0.17.0 and Rust toolchain to 1.95.0
matrix-sdk 0.17.0 brings a few breaking API changes that we adapt to: - Drop the `native-tls` feature on matrix-sdk; it was removed upstream in 2026-04 (matrix-sdk now hardwires rustls). The previous workaround comment referencing rust-mxlink issue #1 is no longer relevant. - `Relation::Reply` is now a tuple variant wrapping a `Reply` struct; pattern matches updated to bind through `reply.in_reply_to.event_id`. Also bumps the Rust toolchain from 1.93.0 to 1.95.0 (closes #85, which proposed the Dockerfile bump in isolation). rustc 1.94+ trips a query-depth overflow when computing async layouts in the matrix-sdk timeline future graph; matrix-rust-sdk PR #6489 raises the limit, but \`recursion_limit\` is per-crate, so we repeat \`#![recursion_limit = "256"]\` on this crate root. Bumps the mxlink floor to 1.14.0, which carries the matching adapter. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
531
Cargo.lock
generated
531
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -21,11 +21,10 @@ async-openai = { version = "0.36.0", features = ["audio", "chat-completion", "im
|
|||||||
base64 = "0.22.*"
|
base64 = "0.22.*"
|
||||||
chrono = { version = "0.4.*", default-features = false, features = ["std", "now"] }
|
chrono = { version = "0.4.*", default-features = false, features = ["std", "now"] }
|
||||||
# We'd rather not depend on this, but we cannot use the ruma-events EventContent macro without it.
|
# We'd rather not depend on this, but we cannot use the ruma-events EventContent macro without it.
|
||||||
# We add the `native-tls` feature, because of https://github.com/etkecc/rust-mxlink/issues/1
|
matrix-sdk = { version = "0.17.0", default-features = false }
|
||||||
matrix-sdk = { version = "0.16.0", default-features = false, features = ["native-tls"] }
|
|
||||||
mime_guess = "2.0.*"
|
mime_guess = "2.0.*"
|
||||||
mxidwc = "1.0.*"
|
mxidwc = "1.0.*"
|
||||||
mxlink = ">=1.13.0"
|
mxlink = ">=1.14.0"
|
||||||
etke_openai_api_rust = "0.1.*"
|
etke_openai_api_rust = "0.1.*"
|
||||||
quick_cache = "0.6.*"
|
quick_cache = "0.6.*"
|
||||||
regex = "1.12.*"
|
regex = "1.12.*"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# #
|
# #
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
FROM docker.io/rust:1.93.1-slim-trixie AS build
|
FROM docker.io/rust:1.95.0-slim-trixie AS build
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y build-essential pkg-config libssl-dev libsqlite3-dev
|
RUN apt-get update && apt-get install -y build-essential pkg-config libssl-dev libsqlite3-dev
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# #
|
# #
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
FROM docker.io/rust:1.93.1-slim-trixie AS build
|
FROM docker.io/rust:1.95.0-slim-trixie AS build
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y build-essential pkg-config libssl-dev libsqlite3-dev
|
RUN apt-get update && apt-get install -y build-essential pkg-config libssl-dev libsqlite3-dev
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "1.93.0"
|
channel = "1.95.0"
|
||||||
components = ["rustfmt", "clippy"]
|
components = ["rustfmt", "clippy"]
|
||||||
profile = "default"
|
profile = "default"
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ async fn get_matrix_messages_in_reply_chain_native(
|
|||||||
AnySyncMessageLikeEvent::RoomMessage(room_message) => {
|
AnySyncMessageLikeEvent::RoomMessage(room_message) => {
|
||||||
if let SyncMessageLikeEvent::Original(room_message_original) = room_message {
|
if let SyncMessageLikeEvent::Original(room_message_original) = room_message {
|
||||||
match room_message_original.content.relates_to {
|
match room_message_original.content.relates_to {
|
||||||
Some(Relation::Reply { in_reply_to }) => Some(in_reply_to.event_id.clone()),
|
Some(Relation::Reply(reply)) => Some(reply.in_reply_to.event_id.clone()),
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -420,11 +420,11 @@ pub async fn determine_interaction_context_for_room_event(
|
|||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
Relation::Reply { in_reply_to } => {
|
Relation::Reply(reply) => {
|
||||||
determine_interaction_context_for_room_event_related_to_reply(
|
determine_interaction_context_for_room_event_related_to_reply(
|
||||||
current_event,
|
current_event,
|
||||||
current_event_is_mentioning_bot,
|
current_event_is_mentioning_bot,
|
||||||
in_reply_to.event_id.clone(),
|
reply.in_reply_to.event_id.clone(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
// rustc 1.94+ trips a query-depth overflow when computing async layouts in
|
||||||
|
// the matrix-sdk timeline future graph. matrix-rust-sdk PR #6489 raises the
|
||||||
|
// limit, but `recursion_limit` is per-crate and applies to the crate currently
|
||||||
|
// being compiled — so the consumer has to repeat it.
|
||||||
|
#![recursion_limit = "256"]
|
||||||
|
|
||||||
mod agent;
|
mod agent;
|
||||||
mod bot;
|
mod bot;
|
||||||
mod controller;
|
mod controller;
|
||||||
|
|||||||
Reference in New Issue
Block a user