Emmanuel Gil Peyrot
d867d8d7a1
jid: Replace icu with stringprep
...
This dependency is unmaintained, but it is written in pure Rust unlike
ICU, and doesn’t require a roundtrip through UTF-16, improving both
performances (perhaps?) and ease of compilation.
2023-06-20 18:59:26 +02:00
Emmanuel Gil Peyrot
a7dee0bef4
jid: Test for the size of our structs
...
This shows how big JIDs are represented on the stack and in other
structs.
2023-06-20 18:59:26 +02:00
Maxime “pep” Buquet
4701f6bb69
jid: Rename Error::IcuError into Error::Stringprep
...
Avoir the "Error Error" pattern, and also use Stringprep instead of ICU
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-06-07 17:29:05 +02:00
2cafecb004
JID stringprep errors return a JidParseError instead of panic ( #84 )
2023-06-07 17:29:00 +02:00
8d9288ffd7
Implement From<&Jid> for String ( close #69 )
2023-05-28 22:27:40 +02:00
ce255d9602
Jid (de)serialization now uses untagged representation ( close #66 )
2023-05-28 19:54:51 +02:00
Emmanuel Gil Peyrot
6eb25755a3
WIP: Add ICU bindings for stringprep, idna2008 and spoof checker.
2022-09-16 11:10:52 +02:00
Emmanuel Gil Peyrot
9891cc48ac
jid: Fix the issues reported by clippy
2021-10-11 16:17:09 +02: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
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