From 48c834f4555f65ebf7e2bbba8c4913ba1c016bd7 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Sun, 5 Jul 2026 09:13:07 +0000 Subject: [PATCH] Allow enabling the Rust Postgres driver in the Complement image Emit `use_rust_driver: true` in the generated homeserver config when `SYNAPSE_USE_RUST_DRIVER=true` is set (default off, so the psycopg2 path is unchanged). Passed through Complement as `PASS_SYNAPSE_USE_RUST_DRIVER=true`, this lets the Complement suite run against the native Rust backend. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01W3G4M92AmwSSZCbmtMJU3d --- docker/conf/homeserver.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/conf/homeserver.yaml b/docker/conf/homeserver.yaml index e2e1338673..e889f99e00 100644 --- a/docker/conf/homeserver.yaml +++ b/docker/conf/homeserver.yaml @@ -78,6 +78,9 @@ database: {% endif %} cp_min: {{ POSTGRES_CP_MIN or 5 }} cp_max: {{ POSTGRES_CP_MAX or 10 }} +{% if SYNAPSE_USE_RUST_DRIVER == "true" %} + use_rust_driver: true +{% endif %} {% else %} database: name: "sqlite3"