Commit graph

2161 commits

Author SHA1 Message Date
f3e1160f6e
parsers: Update test_size tests take 2
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-11-30 16:39:24 +01:00
4795b2c628
parsers: Update test_size tests
Change certainly due to https://github.com/rust-lang/rust/pull/94075

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-30 16:32:18 +02:00
Emmanuel Gil Peyrot
ebd7df2dcf tokio-xmpp: Bump all dependencies
No code change was needed this time, it seems.
2022-09-20 21:17:26 +02:00
Emmanuel Gil Peyrot
e85b4260bd icu: Derive PartialEq and Eq
Also fixes a TODO about making comparisons better.
2022-09-20 19:15:51 +02:00
Emmanuel Gil Peyrot
4bfd85556d icu: Make Stringprep private and add helper functions
This makes the API easier to use.
2022-09-20 19:15:26 +02:00
Emmanuel Gil Peyrot
8d4ed296d0 icu: Make links in docstrings actual links
Thanks `cargo doc` for the helpful warnings!
2022-09-20 19:14:57 +02:00
70cba2279e tokio-xmpp: Automatically add id on send if not present
Based on Yuka's work in !149, but moved into tokio-xmpp instead of
xmpp-rs

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-16 18:06:51 +00:00
267ff2e817
CI: Replace manual rustfmt invocation with cargo fmt
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-16 20:01:21 +02:00
36e66a7ac4
CI: lint
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-16 20:00:55 +02:00
b6b0c5ee52
parsers: cargo fmt the last commit on parsers
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-16 19:57:44 +02:00
Emmanuel Gil Peyrot
6eb25755a3 WIP: Add ICU bindings for stringprep, idna2008 and spoof checker. 2022-09-16 11:10:52 +02:00
a425a039ca muc/user: impl PresencePayload for MucUser
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>


(cherry picked from commit 7e211619e3b51ab86ecf5cf0b746c5e16b790418)
2022-09-15 09:52:24 +00:00
Astro
1613a1c667 tokio-xmpp: Release 3.2.0 2022-07-13 20:50:10 +02:00
Astro
947260a1ce xmpp-parsers: Releae 0.19.1 2022-07-13 20:50:10 +02:00
Astro
b6618ffa3d jid: Release 0.9.4 2022-07-13 20:50:10 +02:00
Astro
bd977a7733 minidom: Release 0.15.0 2022-07-13 20:50:10 +02:00
Gustav Palmqvist
14dddf4aaa Check build without default features in ci-cd. 2022-05-20 18:54:50 +02:00
Gustav Palmqvist
c9931f12a9 Fixed not building when default-features = false 2022-05-20 18:54:50 +02:00
Jonas Schäfer
ea366c2334 Rip out quick-xml 2022-04-24 13:27:48 +02:00
Jonas Schäfer
0fcb8285c5 Ignore size tests for jingle_ft struct on 32bit architectures
Apparently, i686 and AArch32/PowerPC seem to disagree here. So instead
of trying to figure this out now, we just ignore the test.
2022-04-24 13:27:48 +02:00
Jonas Schäfer
96065dc26d Fix size tests on architectures with 32-bit pointers 2022-04-23 15:31:46 +02:00
Astro
b06dda46a3 tokio-xmpp: remove useless Mutex from XMPPStream
Thanks-to: Yureka
2022-04-19 23:49:24 +02:00
Astro
568a7c2611 minidom: remove unused parser module 2022-04-19 20:45:44 +02:00
Astro
d4a5a8247b minidom, tokio-xmpp: switch xml parsing to rxml 2022-04-19 20:42:30 +02:00
Astro
3901068717 tokio-xmpp: remove LocalSet from AsyncClient, making it Sync 2022-04-19 17:44:48 +02:00
8e2224bc0f xmpp: pass in headers for http upload
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-04-18 12:10:55 +02:00
28df82c7bd xmpp: disconnect method on Agent
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-04-18 12:10:55 +02:00
a15a028383 xmpp: hello_bot: add catchall for Event
Masks HTTPUploadedFile which is useless here as we don't call the upload
method.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-04-18 12:10:55 +02:00
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