Commit graph

1446 commits

Author SHA1 Message Date
Paul Fariello
cc4e0c247e Implement all sub element of pubsub#owner 2021-01-12 22:44:42 +01:00
Paul Fariello
e6d4047160 Add pubsub#owner initial support (only configure) 2021-01-12 22:44:42 +01:00
Emmanuel Gil Peyrot
521bf6e7d7 tokio-xmpp: Bump sasl to 0.5 2021-01-12 19:26:21 +01:00
Emmanuel Gil Peyrot
059321f89a xmpp-parsers: Add support for Jingle Raw UDP Transport Method (XEP-0177) 2021-01-12 17:05:45 +01:00
Emmanuel Gil Peyrot
4d82f14bb3 xmpp-parsers/jingle_ice_udp: Update to version 1.1
'foundation' is now a String, and 'network' is optional.

See https://github.com/xsf/xeps/pull/1014
2021-01-12 17:05:45 +01:00
Emmanuel Gil Peyrot
04e149ad53 xmpp-parsers/jingle_rtp: Add a proper constructor for PayloadType. 2021-01-12 17:05:38 +01:00
Emmanuel Gil Peyrot
923a054b81 xmpp-parsers: Make everything PartialEq! \o/ 2021-01-12 17:05:38 +01:00
Emmanuel Gil Peyrot
c10d0094e9 xmpp-parsers/jingle: Use XEP-0338. 2021-01-12 17:05:38 +01:00
Emmanuel Gil Peyrot
27ddad683a xmpp-parsers/jingle: Implement Display on ReasonElement. 2021-01-12 17:05:38 +01:00
Emmanuel Gil Peyrot
026b7d3c12 xmpp-parsers/jingle: Fix Jingle::set_reason() helper.
It would add a content currently…
2021-01-12 17:05:38 +01:00
Emmanuel Gil Peyrot
59ccccbedc xmpp-parsers: Add support for Jingle Grouping Framework (XEP-0338). 2021-01-12 17:05:38 +01:00
Emmanuel Gil Peyrot
5355975254 xmpp-parsers/jingle_rtp: Use XEP-0294. 2021-01-12 17:05:38 +01:00
Emmanuel Gil Peyrot
3ad93f0bf2 xmpp-parsers: Add support for Jingle RTP Header Extensions Negotiation (XEP-0294). 2021-01-12 17:05:38 +01:00
Emmanuel Gil Peyrot
24eeb0b3c9 xmpp-parsers/iq: Add a helper to create an empty result iq.
This can be useful to reply to a get/set iq.
2021-01-12 17:05:38 +01:00
Emmanuel Gil Peyrot
eaa63fbe46 xmpp-parsers/jingle_rtp: Update to 1.2.0, adding rtcp-mux.
The presence of this element signals the ability to multiplex RTP Data
and Control Packets on a single socket.
2021-01-12 17:05:38 +01:00
Paul Fariello
e921168380 Fix bookamrks2 empty extensions field handling 2021-01-05 08:37:05 +01:00
Paul Fariello
20a94117d3 Handle extensions element in bookmarks2 2021-01-05 08:37:05 +01:00
Paul Fariello
76db2ae117 Update bookmarks2 NS to urn:xmpp:bookmarks:1 2021-01-05 08:37:05 +01:00
Emmanuel Gil Peyrot
c3783a77b6 xmpp: Use tokio 1.0 2020-12-30 03:18:17 +01:00
Emmanuel Gil Peyrot
dea95d06e1 tokio-xmpp: Bump trust-dns to 0.20 2020-12-30 03:18:17 +01:00
Emmanuel Gil Peyrot
a38ff39b77 tokio-xmpp: Bump tokio to 1.0 and replace tokio-tls with tokio-native-tls 2020-12-30 03:14:21 +01:00
Emmanuel Gil Peyrot
e1ff9da681 tokio-xmpp: Remove workaround for unknown broken server
This is so we can find and fix the server, instead of cargo culting this
workaround forever.
2020-12-26 16:25:34 +01:00
Emmanuel Gil Peyrot
2f570fcabe xmpp-parsers/caps: Simplify get_hash_vec(). 2020-12-25 16:13:27 +00:00
Emmanuel Gil Peyrot
f085b1cbf8 xmpp-parsers/hashes: Simplify to_*_hex() functions. 2020-12-25 16:13:27 +00:00
Astro
f6cb4a8080 tokio-xmpp: rustfmt 2020-12-25 02:25:17 +01:00
Astro
52a2d962ee tokio-xmpp: add build script to work around build fail on rustc 1.48 2020-12-25 02:05:02 +01:00
Astro
439a09122a Revert "tokio-xmpp: remove unneeded mut on self"
This reverts commit e23c161c0a. It broke
compilation on Rustc 1.45.
2020-12-19 01:09:26 +01:00
Emmanuel Gil Peyrot
f34897b198 xmpp-parsers: Prefer Bare/FromJid::new to FromStr::from_str. 2020-12-10 21:13:55 +01:00
Emmanuel Gil Peyrot
3df447de97 jid: Implement PartialEq between Jid and BareJid/FullJid.
This can be useful at times.
2020-12-10 20:45:01 +01:00
Emmanuel Gil Peyrot
71b995731a xmpp-parsers/mam: Use .is_empty() instead of Vec’s PartialEq. 2020-12-10 20:45:01 +01:00
Emmanuel Gil Peyrot
63d940b339 xmpp-parsers/blocking: Use .is_empty() instead of Vec’s PartialEq. 2020-12-10 20:37:06 +01:00
Emmanuel Gil Peyrot
7d19101e6e Bump outdated dependencies in minidom and xmpp-parsers. 2020-11-13 19:01:16 +01:00
Emmanuel Gil Peyrot
0c0be96ec4 xmpp-parsers/bookmarks: Make @name actually optional
No idea why these two attribute got considered required, maybe a wrong
read of the spec.
2020-10-30 10:38:28 +00:00
Paul Fariello
3a73ce3fd4 Make date::DateTime inner chrono::DateTime public 2020-10-30 08:36:47 +01:00
Emmanuel Gil Peyrot
c25e87b04f xmpp-parsers: Fix the size tests on AArch64 and amd64
These two changes were caused by the HashMap implementation having been
switched to hashbrown, and thus using less memory and being faster.
2020-10-29 18:39:48 +01:00
Emmanuel Gil Peyrot
5cd7d5fe57 xmpp-parsers: Fix size tests on AArch32 2020-10-29 18:39:22 +01:00
e1f2e2653a
xmpp: re-add bits that weren't moved from wait_for_events to handle_iq
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-09-07 11:41:40 +02:00
a8e13a61d7
xmpp: Remove unused import Element
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-09-07 11:40:20 +02:00
9d17a79813
xmpp: split wait_for_events methods
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-09-07 09:58:26 +02:00
e23c161c0a tokio-xmpp: remove unneeded mut on self
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-08-30 01:57:19 +02:00
Emmanuel Gil Peyrot
3db9eeae2f tokio-xmpp: Bump tokio-util 2020-08-03 15:54:44 +00:00
Emmanuel Gil Peyrot
db86aa9d5a xmpp-parsers: Bump RustCrypto crates 2020-07-29 11:07:28 +00:00
b85aa29377
Finish removing 'rs' suffix in libs
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-07-15 10:49:50 +02:00
Emmanuel Gil Peyrot
714d850e69 Remove the -rs suffix of jid, minidom and xmpp
We know those are Rust libraries, no need to add it to the path.  This
synchronises their directory with the crate name, hopefully reducing
confusion.
2020-06-22 02:17:32 +02:00
Astro
e501addb96 tokio-xmpp: use xmpp_parsers::ns everywhere 2020-05-30 01:25:06 +02:00
Astro
1a06a09774 xmpp-parsers: add ns::TLS 2020-05-30 01:14:29 +02:00
Astro
91f4548ef0 xmpp-rs: update tokio_xmpp API 2020-05-30 00:45:42 +02:00
Astro
1e1f593233 tokio-xmpp: rustfmt 2020-05-30 00:45:22 +02:00
Astro
537b4825a8 tokio-xmpp: rename Client to AsyncClient 2020-05-30 00:43:53 +02:00
Astro
eb13634571 tokio-xmpp: rename OneshotClient to SimpleClient 2020-05-30 00:43:48 +02:00