Skip to content

error: queries overflow the depth limit! with 1.94.0 #6254

@mat813

Description

@mat813

My Cargo.toml line for matrix-sdk is:

matrix-sdk = { version = "=0.16.0", features = [
  "eyre",
  "markdown",
  "e2e-encryption",
  "automatic-room-key-forwarding",
  "sqlite",
  "bundled-sqlite",
  "rustls-tls",
  "experimental-search"
], default-features = false }

When I run cargo build, I get:

$ cargo version -v
cargo 1.94.0 (85eff7c80 2026-01-15)
release: 1.94.0
commit-hash: 85eff7c80277b57f78b11e28d14154ab12fcf643
commit-date: 2026-01-15
host: x86_64-unknown-linux-gnu
libgit2: 1.9.2 (sys:0.20.3 vendored)
libcurl: 8.17.0-DEV (sys:0.4.84+curl-8.17.0 vendored ssl:OpenSSL/3.5.4)
ssl: OpenSSL 3.5.4 30 Sep 2025
os: Ubuntu 22.4.0 (jammy) [64-bit]               

$ cargo build
   Compiling matrix-sdk v0.16.0
error: queries overflow the depth limit!
  |
  = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`matrix_sdk`)
  = note: query depth increased by 130 when computing layout of `{async fn body of client::<impl at /home/mat/.local/share/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/matrix-sdk-0.16.0/src/client/mod.rs:488:1: 488:12>::sync()}`

error: could not compile `matrix-sdk` (lib) due to 1 previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions