Jonas Schäfer
2e9c9411a3
jid: rewrite public types
...
This moves InnerJid into Jid and reformulates BareJid and FullJid in
terms of Jid.
Doing this has the key advantage that FullJid and BareJid can deref to
and borrow as Jid. This, in turn, has the advantage that they can be
used much more flexibly in HashMaps. However, this is (as we say in
Germany) future music; this commit only does the internal reworking.
Oh and also, it saves 20% memory on Jid objects.
Fixes #122 more thoroughly, or rather the original intent behind it.
2024-04-15 18:21:24 +02:00
Maxime “pep” Buquet
4089891f6c
Update edition to 2021
...
- Remove TryFrom/Into and FromIterator imports
- Prevent impl_validator_using_provider macro in sasl crate from
constructing trait object
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-12-15 19:40:09 +00:00
Maxime “pep” Buquet
b522eaf7f3
parsers: clippy pass
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-12-15 19:26:06 +00:00
Emmanuel Gil Peyrot
c7887efbc7
xmpp-parsers: Fix size tests on 32-bit
2023-06-20 18:59:26 +02:00
Emmanuel Gil Peyrot
91736ec0ed
xmpp-parsers: Fix size tests on 64-bit
2023-06-20 18:59:26 +02:00
Emmanuel Gil Peyrot
022a920300
xmpp-parsers: Update to the new jid crate
2023-06-20 18:59:26 +02:00
512c1d1aae
Presence now has constructors for each type variant, and a with_payload builder method ( closes #79 )
2023-06-03 08:59:19 +00:00
Maxime “pep” Buquet
afcf9fb2d0
parsers: correct cargo doc warnings
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 17:36:19 +01:00
Maxime “pep” Buquet
309b4cf87d
parsers/presence: derive PartialEq on Presence
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-16 19:26:00 +01:00
Emmanuel Gil Peyrot
464b5de0d0
parsers: Fix some issues reported by clippy.
2021-10-11 16:17:09 +02:00
Emmanuel Gil Peyrot
9410849d7a
Rename the xmpp-parsers directory to parsers
...
This doesn’t change anything to the name of the crate, just makes
autocompletion easier by not sharing the same prefix as the xmpp crate.
2021-10-11 08:24:16 +02:00