Maxime “pep” Buquet
a59c618ed0
Implement XEP-0363 HTTP File Upload in xmpp-rs. The current interface is as is because of a limitation of our libraries. It is not possible to await on an IQ to get a result, so we have to workaround it by storing data on the Agent and fetching it back when we get the result. The client will have to first call `upload_file_with` and then listen on Event::HttpUploadedFile, which are decoupled actions, instead of awaiting on upload_file_with and getting the URL as a result directly. `upload_file_with` doesn't yet find the upload service by itself for the same reason as above. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
32 lines
840 B
TOML
32 lines
840 B
TOML
[package]
|
|
name = "xmpp"
|
|
version = "0.3.0"
|
|
authors = [
|
|
"Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>",
|
|
"Maxime “pep” Buquet <pep@bouah.net>",
|
|
]
|
|
description = "High-level XMPP library"
|
|
homepage = "https://gitlab.com/xmpp-rs/xmpp-rs"
|
|
repository = "https://gitlab.com/xmpp-rs/xmpp-rs"
|
|
keywords = ["xmpp", "jabber", "chat", "messaging", "bot"]
|
|
categories = ["network-programming"]
|
|
license = "MPL-2.0"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
tokio-xmpp = "3.0.0"
|
|
xmpp-parsers = "0.19"
|
|
futures = "0.3"
|
|
tokio = { version = "1", features = ["full"] }
|
|
log = "0.4"
|
|
reqwest = { version = "0.11.8", features = ["stream"] }
|
|
tokio-util = { version = "0.6.9", features = ["codec"] }
|
|
|
|
[dev-dependencies]
|
|
env_logger = "0.8"
|
|
|
|
[features]
|
|
default = ["avatars"]
|
|
avatars = []
|
|
serde = ["tokio-xmpp/serde", "xmpp-parsers/serde"]
|
|
tls-rust = ["tokio-xmpp/tls-rust"]
|