1
0
mirror of https://gitlab.com/xmpp-rs/xmpp-rs.git synced 2024-06-16 21:05:26 +02:00
Commit Graph

13 Commits

Author SHA1 Message Date
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
Emmanuel Gil Peyrot
6df8062867 Fix size tests on latest Rust release
Since Rust 1.76, and some much older nightly, there have been
improvements to the niche computation, which leads to smaller types
which can encode the same amount of data, variants, and such.

This fixes the tests on this compiler version.
2024-02-27 12:27:31 +01: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
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
Maxime “pep” Buquet
a0e6054eb8 parsers: Update IETF URLs in documentation
sed -i -e 's/tools\.ietf\.org\/html/www\.rfc-editor\.org\/rfc/' src/**.rs

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 17:36:19 +01: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
4244dc2be1
parsers: Conditional on rustc version for test_size tests
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-16 20:30:17 +01:00
Maxime “pep” Buquet
b0e5ca0be8 Revert "parsers: Update test_size tests take 2"
This reverts commit f3e1160f6e.
It doesn't fail yet in stable.
2022-12-16 12:59:01 +01:00
Maxime “pep” Buquet
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
Maxime “pep” Buquet
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
Jonas Schäfer
ea366c2334 Rip out quick-xml 2022-04-24 13:27:48 +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