xmpp: handle SIGINT (^C) in hello_bot example

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2025-04-11 15:52:15 +02:00
commit da219d4fed
No known key found for this signature in database
GPG key ID: DEDA74AEECA9D0F2
3 changed files with 62 additions and 43 deletions

View file

@ -16,7 +16,7 @@ edition = "2021"
[dependencies]
chrono = "0.4"
futures = "0.3"
tokio = { version = "1", features = ["fs"] }
tokio = { version = "1", features = ["fs", "signal"] }
log = "0.4"
reqwest = { version = "0.12", features = ["stream"], default-features = false }
tokio-util = { version = "0.7", features = ["codec"] }