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
Maxime “pep” Buquet
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
Maxime “pep” Buquet
a8e13a61d7
xmpp: Remove unused import Element
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-09-07 11:40:20 +02:00
Maxime “pep” Buquet
9d17a79813
xmpp: split wait_for_events methods
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-09-07 09:58:26 +02:00
Maxime “pep” Buquet
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
Maxime “pep” Buquet
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
Astro
3e2b51f148
tokio-xmpp: improve error logging
2020-05-30 00:43:48 +02:00
Astro
2cd1ad217b
tokio-xmpp: add onshot_client
2020-05-30 00:43:48 +02:00
Astro
c13712b158
tokio-xmpp client: condense fn connect(), refactor out into stream_features
2020-05-30 00:43:35 +02:00
Astro
4d24e6bebb
tokio-xmpp: name Event::Online fields, add resumed flag
2020-05-29 18:21:31 +02:00
Maxime “pep” Buquet
f8cb643590
xmpp: Add ChatMessage and GroupMessage events; API likely to change
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-12 19:55:21 +02:00
Maxime “pep” Buquet
597f5a3ccb
Update Changelogs re jid / serde
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-07 21:39:37 +02:00
Maxime “pep” Buquet
8bf643a84f
jid: implement custom (De)Serializer for a prettier visual
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-01 02:26:58 +02:00
Maxime “pep” Buquet
91c8045329
jid: impl &{Bare,Full}Jid for String
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-01 02:25:30 +02:00
Maxime “pep” Buquet
36aaa3e681
jid: Add serde support behind feature
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-30 23:24:48 +02:00
Maxime “pep” Buquet
df47130823
README: add lib descriptions
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-23 23:19:37 +02:00
Maxime “pep” Buquet
36d77bcae4
Add README
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-22 00:06:50 +02:00
Maxime “pep” Buquet
47ab4446d1
parsers: remove unused imports
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-22 00:02:54 +02:00
Maxime “pep” Buquet
d4bbeb2c6c
minidom: Add todo in Prefixes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-21 22:23:36 +02:00
Maxime “pep” Buquet
33ee71bcb4
tokio-xmpp: update for minidom changes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-21 22:23:36 +02:00
Maxime “pep” Buquet
eca44f5602
jid: update for minidom changes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-21 22:23:36 +02:00
Maxime “pep” Buquet
fd158d9a08
parsers: rustfmt
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-21 22:23:36 +02:00
Maxime “pep” Buquet
fa8b9ed199
minidom: rustfmt
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-21 22:23:36 +02:00
Maxime “pep” Buquet
3d71e37e0c
minidom: Ensure there is no colon in name when creating element
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-21 22:23:36 +02:00
Maxime “pep” Buquet
937e2380b9
minidom: Make ElementBuilder::prefix fail on adding duplicate prefix
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-21 22:23:36 +02:00
Maxime “pep” Buquet
770dff7cb0
minidom: Don't borrow prefix in Prefixes.get
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-21 22:23:36 +02:00
Maxime “pep” Buquet
1f2d7aa99d
minidom: Rework Prefixes internal structure
...
Change the mapping in Prefixes to Prefix -> Namespace instead of
Namespace -> Prefix. This allows us to not have duplicate prefixes
anymore, but requires us to store the prefix on Element. This prefix is
only taken as a hint anyway and used only when coming from the reader.
This commits also partially removes the possibility to add prefixes
when creating an Element via `Element::new`, `Element::builder` or
`Element::bare`. Proper errors should be added in the following commits.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-21 22:23:36 +02:00
Maxime “pep” Buquet
429949102d
minidom: remove unused Rc
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-21 22:23:36 +02:00