xmpp: handle SIGINT (^C) in hello_bot example
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
23c947d081
commit
da219d4fed
3 changed files with 62 additions and 43 deletions
|
|
@ -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"] }
|
||||
|
|
|
|||
Loading…
Reference in a new issue