summary refs log tree commit diff
path: root/synapse/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-09-12 11:03:42 +0100
committerGitHub <noreply@github.com>2022-09-12 10:03:42 +0000
commitebfeac7c5ded851a2639911ec6adf9d0fcdb029a (patch)
tree972049d45c5fed1241ee4820705033cbba784d5f /synapse/__init__.py
parentConcurrently collect room unread counts for push badges (#13765) (diff)
downloadsynapse-ebfeac7c5ded851a2639911ec6adf9d0fcdb029a.tar.xz
Check if Rust lib needs rebuilding. (#13759)
This protects against the common mistake of failing to remember to rebuild Rust code after making changes.
Diffstat (limited to 'synapse/__init__.py')
-rw-r--r--synapse/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/__init__.py b/synapse/__init__.py
index b1369aca8f..1bed6393bd 100644
--- a/synapse/__init__.py
+++ b/synapse/__init__.py
@@ -20,6 +20,8 @@ import json
 import os
 import sys
 
+from synapse.util.rust import check_rust_lib_up_to_date
+
 # Check that we're not running on an unsupported Python version.
 if sys.version_info < (3, 7):
     print("Synapse requires Python 3.7 or above.")
@@ -78,3 +80,6 @@ if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
     from synapse.util.patch_inline_callbacks import do_patch
 
     do_patch()
+
+
+check_rust_lib_up_to_date()