Commit graph

1833 commits

Author SHA1 Message Date
c8d7602bd4 xmpp: only specify "fs" dep for tokio
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-04-18 12:10:55 +02:00
a59c618ed0 xmpp: HTTP File Upload
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>
2022-04-18 12:10:55 +02:00
Emmanuel Gil Peyrot
eb19f8329c xmpp-parsers: Add forgotten RTT documentation
Sorry about that!
2022-04-11 18:59:32 +02:00
Emmanuel Gil Peyrot
259231bfcc Bump pbkdf2 dependency to 0.11 2022-04-09 21:39:45 +02:00
Emmanuel Gil Peyrot
95c6b12d9c xmpp-parsers: Run cargo fmt on legacy_omemo 2022-04-04 21:09:49 +02:00
Yureka
60b848ed5d
parsers: add omemo parsers 2022-04-03 11:39:39 +02:00
Yureka
4920ae83fd tokio_xmpp: missing std::error::Error impls 2022-03-23 12:09:26 +01:00
281f1bd195 minidom: un-ignore doctest in lib.rs
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-22 17:12:54 +01:00
Emmanuel Gil Peyrot
e076ba52e2 xmpp-parsers: Add In-Band Real Time Text support 2022-03-22 15:14:43 +00:00
39c7fd2b0c parsers/bookmarks2: uncomment 'wrapped' test
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-22 15:07:43 +00:00
Emmanuel Gil Peyrot
9e9f484bd9 xmpp-parsers: Simplify trailing comma handling in macros
Since Rust 1.32.0 (so basically forever ago) we can use the $(…)?
construct in macros to mean one or zero times this chunk of tokens.
This allows making the last comma optional in lists of things.
2022-03-22 15:59:00 +01:00
Emmanuel Gil Peyrot
46c2b384e2 xmpp: Bump xmpp-parsers 2022-03-07 13:15:08 +01:00
Emmanuel Gil Peyrot
84622607ed tokio-xmpp: Bump xmpp-parsers 2022-03-07 13:14:47 +01:00
Emmanuel Gil Peyrot
ae480880ac xmpp-parsers: Release 0.19.0 2022-03-07 13:00:04 +01:00
Emmanuel Gil Peyrot
e4907bbc78 xmpp-parsers: Add a README 2022-03-07 12:59:43 +01:00
Emmanuel Gil Peyrot
cacae44fae xmpp-parsers: Fix ChangeLog entry for 0.18.1 2022-03-07 12:57:06 +01:00
Emmanuel Gil Peyrot
af05e91e75 xmpp-parsers: Add a ChangeLog entry for 0.19.0 2022-03-07 12:55:44 +01:00
Emmanuel Gil Peyrot
184026ed4d xmpp-parsers: Add new XEPs in DOAP 2022-03-07 12:55:20 +01:00
Emmanuel Gil Peyrot
49cf8d777d xmpp-parsers: Fix since for XEPs added in 0.18.0 in DOAP 2022-03-07 12:54:56 +01:00
Emmanuel Gil Peyrot
7d3649f5d3 xmpp-parsers: Add missing XEP-0363 in DOAP 2022-03-07 12:54:02 +01:00
Emmanuel Gil Peyrot
4db5d4e045 xmpp-parsers: Require blake2 0.10.4
Fixes blake2b on big endian platforms.
2022-03-07 12:53:27 +01:00
Emmanuel Gil Peyrot
10f173db91 jid: Release 0.9.3 2022-03-07 12:12:02 +01:00
Emmanuel Gil Peyrot
07ff66d1cc minidom: Release 0.14.0 2022-03-07 12:08:12 +01:00
Emmanuel Gil Peyrot
e8359cffdc jid, xmpp-parsers: Bump minidom. 2022-02-16 21:11:56 +01:00
Jonas Schäfer
3cbc7ffacd Publish the starttls helper function
Without it, it seems impossible to start TLS on an XMPPStream object,
preventing any use of that object on its own (not wrapped into
AsyncClient or somesuch).
2022-02-08 20:20:27 +00:00
Emmanuel Gil Peyrot
014582461e extdisco: Use the correct size of Service on 32-bit platforms
This has been tested on my Wii U.
2022-02-02 15:03:54 +01:00
Emmanuel Gil Peyrot
f2af82718e bookmarks2: Simplify the type of the extensions 2022-01-03 12:34:24 +01:00
Emmanuel Gil Peyrot
1cc16e65db dataforms: Add helper constructors for Field and DataForm. 2022-01-03 11:53:52 +01:00
Bastien Orivel
56363714fb Update quick-xml to 0.22 and bump version 2021-12-28 16:04:12 +00:00
dc6dd19a44 parsers: http_upload: allow any case header
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-28 15:24:17 +00:00
9b6fcd1bd7 parsers: http_upload: add tests
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-28 15:24:17 +00:00
ee01d12838 parsers: http_upload: Make Header an enum as required per the XEP
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-28 15:24:17 +00:00
94cf8afdff parsers: XEP-0363: HTTP File Upload
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-28 15:24:17 +00:00
Emmanuel Gil Peyrot
e4d20c47bb parsers: Only warn on missing docs
Erroring out was making us add /// TODO to avoid the error, and that is
much less visible than a warning.
2021-12-27 12:30:57 +01:00
Emmanuel Gil Peyrot
9401b79a02 parsers/extdisco: Document missing TODOs. 2021-12-27 12:30:06 +01:00
63733885d2
CI: Show rustc and cargo version
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-27 01:22:53 +01:00
f0b302da1f
xmpp: Proxy tls-rust
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-25 18:52:48 +01:00
Emmanuel Gil Peyrot
3a802eb193 Implement SASL ANONYMOUS on the server side
Fixes #11.
2021-12-25 16:24:00 +01:00
Emmanuel Gil Peyrot
6e22c0fcb4 Bump all hash crates 2021-12-25 15:57:41 +01:00
Emmanuel Gil Peyrot
1a03588bdb xmpp-parsers: Bump all hash crates. 2021-12-25 14:55:45 +01:00
Emmanuel Gil Peyrot
edba9c9f5d tokio-xmpp: Remove an unwrap() in DNS name parsing 2021-12-01 19:13:31 +00:00
Emmanuel Gil Peyrot
4a8bda1287 tokio-xmpp: Bump dependencies
This removes the pest, semver-parser and ucd-trie transitive
dependencies.
2021-12-01 19:13:31 +00:00
Emmanuel Gil Peyrot
7ddf5e5c33 minidom: Replace IPv4 test with IPv6
This makes the tests pass again on nightly, and avoids using legacy IP
while we have glorious IPv6 support everywhere nowadays.

See also https://github.com/rust-lang/rust/issues/90199
2021-12-01 18:21:34 +01:00
Astro
4766a01d01 tokio-xmpp: release 3.1.0 2021-11-23 19:06:09 +01:00
16292e1e6f
minidom: specify again that we handle XMPP primarily
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-11-14 14:32:19 +01:00
Emmanuel Gil Peyrot
8ddd488b7f parsers/ssma: Use an enum for @semantics.
This one comes from RFC5588.
2021-10-23 15:56:18 +02:00
Emmanuel Gil Peyrot
b30572612b parsers/ssma: ssrc-id is actually an u32.
Now that this XEP has an XML schema[1], it should be more evident.

[1] https://github.com/xsf/xeps/pull/1120
2021-10-23 15:44:02 +02:00
Emmanuel Gil Peyrot
7bdf7656eb parsers/hdrext: Parse the @id as u16 instead of String
The specification says it can only be in the 1-256, 4096-4351 ranges, so
use the closest type available.  This doesn’t validate that the value is
correct, but that will be done in a future commit.

Thanks gst-meet for making me notice this issue!
2021-10-23 12:26:19 +02:00
Emmanuel Gil Peyrot
3a6cd23166 parsers: Add support for XEP-0215: External Service Discovery 2021-10-15 15:02:28 +00:00
Emmanuel Gil Peyrot
9891cc48ac jid: Fix the issues reported by clippy 2021-10-11 16:17:09 +02:00