Files
synapse/rust
Erik JohnstonandClaude Opus 5 a6557c7989 Match HomeServer wrapper method names to Python; make RustRuntime clonable
Rename the HomeServer wrapper accessors to mirror the Python methods they
call (get_rust_runtime, get_clock), so the wrapper reads 1:1 against
synapse/server.py.

Make RustRuntime itself a cheaply-clonable handle (Clone + Deref to
RustRuntimeInner) rather than exposing Arc<RustRuntimeInner> in
signatures. With pyo3's opt-in from_py_object extraction, the same class
serves as both the Python-facing object and the Rust-side handle:
consumers now declare `runtime: RustRuntime` in their constructors and
pyo3 clones it out (an Arc refcount bump), so no separate Py-wrapper
type is needed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HyuiV3m44ZbK9o24EnMMES
2026-07-28 09:08:21 +00:00
..