mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

* Update Python deps * Update semver-compat Rust deps * Update most crates to latest semver * Update to latest axum-client-ip
22 lines
509 B
Python
22 lines
509 B
Python
# Copyright: Ankitects Pty Ltd and contributors
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
|
|
def run_sync_server() -> None:
|
|
import sys
|
|
from os import environ as env
|
|
|
|
from anki._backend import RustBackend
|
|
|
|
env["RUST_LOG"] = env.get("RUST_LOG", "anki=info")
|
|
|
|
try:
|
|
RustBackend.syncserver()
|
|
except Exception as exc:
|
|
print("Sync server failed:", exc)
|
|
sys.exit(1)
|
|
sys.exit(0)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
run_sync_server()
|