Compare commits
1 Commits
master
...
f3c405ad10
Author | SHA1 | Date | |
---|---|---|---|
f3c405ad10 |
814
Cargo.lock
generated
814
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
38
Cargo.toml
38
Cargo.toml
@ -4,32 +4,32 @@ version = "0.1.0"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.27"
|
log = "0.4.25"
|
||||||
env_logger = "0.11.8"
|
env_logger = "0.11.6"
|
||||||
clap = { version = "4.5.40", features = ["derive", "env"] }
|
clap = { version = "4.5.26", features = ["derive", "env"] }
|
||||||
lazy_static = "1.5.0"
|
lazy_static = "1.5.0"
|
||||||
anyhow = "1.0.98"
|
anyhow = "1.0.95"
|
||||||
serde = { version = "1.0.219", features = ["derive"] }
|
serde = { version = "1.0.217", features = ["derive"] }
|
||||||
serde_json = "1.0.140"
|
serde_json = "1.0.137"
|
||||||
rust-s3 = { version = "0.36.0-beta.2", features = ["tokio"] }
|
rust-s3 = { version = "0.36.0-beta.2", features = ["tokio"] }
|
||||||
actix-web = "4.11.0"
|
actix-web = "4"
|
||||||
actix-session = { version = "0.10.1", features = ["redis-session"] }
|
actix-session = { version = "0.10.1", features = ["redis-session"] }
|
||||||
light-openid = "1.0.4"
|
light-openid = "1.0.2"
|
||||||
thiserror = "2.0.12"
|
thiserror = "2.0.11"
|
||||||
rand = "0.9.1"
|
rand = "0.9.0"
|
||||||
rust-embed = "8.7.2"
|
rust-embed = "8.5.0"
|
||||||
mime_guess = "2.0.5"
|
mime_guess = "2.0.5"
|
||||||
askama = "0.14.0"
|
askama = "0.12.1"
|
||||||
urlencoding = "2.1.3"
|
urlencoding = "2.1.3"
|
||||||
uuid = { version = "1.17.0", features = ["v4", "serde"] }
|
uuid = { version = "1.12.1", features = ["v4", "serde"] }
|
||||||
ipnet = { version = "2.11.0", features = ["serde"] }
|
ipnet = { version = "2.11.0", features = ["serde"] }
|
||||||
chrono = "0.4.41"
|
chrono = "0.4.39"
|
||||||
futures-util = { version = "0.3.31", features = ["sink"] }
|
futures-util = { version = "0.3.31", features = ["sink"] }
|
||||||
jwt-simple = { version = "0.12.12", default-features = false, features = ["pure-rust"] }
|
jwt-simple = { version = "0.12.11", default-features = false, features = ["pure-rust"] }
|
||||||
actix-remote-ip = "0.1.0"
|
actix-remote-ip = "0.1.0"
|
||||||
bytes = "1.10.1"
|
bytes = "1.9.0"
|
||||||
sha2 = "0.11.0-rc.0"
|
sha2 = "0.11.0-pre.4"
|
||||||
base16ct = "0.2.0"
|
base16ct = "0.2.0"
|
||||||
ruma = { version = "0.12.3", features = ["client-api-c", "client-ext-client-api", "client-hyper-native-tls", "rand"] }
|
ruma = { version = "0.12.0", features = ["client-api-c", "client-ext-client-api", "client-hyper-native-tls", "rand"] }
|
||||||
actix-ws = "0.3.0"
|
actix-ws = "0.3.0"
|
||||||
tokio = { version = "1.45.1", features = ["rt", "time", "macros", "rt-multi-thread"] }
|
tokio = { version = "1.43.0", features = ["rt", "time", "macros", "rt-multi-thread"] }
|
@ -30,7 +30,7 @@ services:
|
|||||||
- 8448:8448/tcp
|
- 8448:8448/tcp
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: docker.io/postgres:17-alpine
|
image: docker.io/postgres:12-alpine
|
||||||
user: "1000"
|
user: "1000"
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=synapse
|
- POSTGRES_USER=synapse
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
{
|
{
|
||||||
"extends": ["local>renovate/presets"]
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
}
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"matchUpdateTypes": ["major", "minor", "patch"],
|
||||||
|
"automerge": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
@ -2,7 +2,7 @@ use clap::Parser;
|
|||||||
use s3::creds::Credentials;
|
use s3::creds::Credentials;
|
||||||
use s3::{Bucket, Region};
|
use s3::{Bucket, Region};
|
||||||
|
|
||||||
/// Matrix gateway backend API
|
/// GeneIT backend API
|
||||||
#[derive(Parser, Debug, Clone)]
|
#[derive(Parser, Debug, Clone)]
|
||||||
#[clap(author, version, about, long_about = None)]
|
#[clap(author, version, about, long_about = None)]
|
||||||
pub struct AppConfig {
|
pub struct AppConfig {
|
||||||
|
@ -42,5 +42,5 @@ pub enum BroadcastMessage {
|
|||||||
/// Stop a client with a given client ID
|
/// Stop a client with a given client ID
|
||||||
StopSyncClient(SyncClientID),
|
StopSyncClient(SyncClientID),
|
||||||
/// Propagate a new sync event
|
/// Propagate a new sync event
|
||||||
SyncEvent(UserID, Box<SyncEvent>),
|
SyncEvent(UserID, SyncEvent),
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ pub async fn ws_handler(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Send the message to the websocket
|
// Send the message to the websocket
|
||||||
if let Ok(msg) = serde_json::to_string(&WsMessage::Sync(*event)) {
|
if let Ok(msg) = serde_json::to_string(&WsMessage::Sync(event)) {
|
||||||
if let Err(e) = session.text(msg).await {
|
if let Err(e) = session.text(msg).await {
|
||||||
log::error!("Failed to send SyncEvent: {}", e);
|
log::error!("Failed to send SyncEvent: {}", e);
|
||||||
}
|
}
|
||||||
|
@ -122,12 +122,12 @@ async fn sync_task(
|
|||||||
match msg_stream {
|
match msg_stream {
|
||||||
Ok(Some(msg)) => {
|
Ok(Some(msg)) => {
|
||||||
log::debug!("Received new message from Matrix: {msg:#?}");
|
log::debug!("Received new message from Matrix: {msg:#?}");
|
||||||
if let Err(e) = tx.send(BroadcastMessage::SyncEvent(user_id.clone(), Box::new(SyncEvent {
|
if let Err(e) = tx.send(BroadcastMessage::SyncEvent(user_id.clone(), SyncEvent {
|
||||||
rooms: msg.rooms,presence: msg.presence,
|
rooms: msg.rooms,presence: msg.presence,
|
||||||
account_data: msg.account_data,
|
account_data: msg.account_data,
|
||||||
to_device: msg.to_device,
|
to_device: msg.to_device,
|
||||||
device_lists: msg.device_lists,
|
device_lists: msg.device_lists,
|
||||||
}))) {
|
})) {
|
||||||
log::error!("Failed to propagate event! {e}");
|
log::error!("Failed to propagate event! {e}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user