The xmpp crate doesn't yet have mechanisms to wait for the next incoming presence and so the `leave_room` method returns after the unavailable presence has been set. Thus the code may still think it's being joined when it pretty soon going not to be. Instead, we chose to send another join presence to signal the MUC we want to get the full state again (occupants, subject), without leaving. Signed-off-by: pep <pep@bouah.net>
33 lines
1 KiB
TOML
33 lines
1 KiB
TOML
[package]
|
|
name = "cusku"
|
|
version = "0.2.0"
|
|
description = "Webhook to XMPP"
|
|
edition = "2024"
|
|
authors = ["Maxime “pep” Buquet <pep@bouah.net>"]
|
|
license = "AGPL-3.0+"
|
|
|
|
[dependencies]
|
|
clap = { version = "4.5", features = [ "cargo" ] }
|
|
forgejo-hooks = "*"
|
|
gitlab = "0.1706"
|
|
hyper = { version = "1.6", default-features = false, features = [ "http1", "server" ] }
|
|
hyper-util = { version = "0.1", features = [ "tokio" ] }
|
|
http-body-util = "0.1"
|
|
bytes = "1"
|
|
log = "0.4"
|
|
tokio = { version = "1", default-features = false, features = [ "rt", "net", "sync", "fs" ] }
|
|
pretty_env_logger = "0.5"
|
|
serde = { version = "1.0", features = [ "derive" ] }
|
|
serde_json = "1.0"
|
|
toml = "0.9"
|
|
xmpp = { git = "https://gitlab.com/xmpp-rs/xmpp-rs", branch = "xmpp-join-resync", default-features = false, features = [ "serde", "starttls", "rustls-native-certs", "aws_lc_rs" ] }
|
|
hmac = "0.12"
|
|
sha2 = "0.10"
|
|
hex = "0.4"
|
|
camino = { version = "1.2", features = ["serde1"] }
|
|
|
|
[patch.crates-io]
|
|
forgejo-hooks = { path = "forgejo-hooks" }
|
|
|
|
[features]
|
|
syntax-highlighting = ["xmpp/syntax-highlighting"]
|