Commit graph

605 commits

Author SHA1 Message Date
Emmanuel Gil Peyrot
7665f7e5d8 jingle: Wrap all supported and unknown transports in an enum. 2019-10-12 17:13:42 +02:00
Emmanuel Gil Peyrot
b91e5bdc4e jingle_ice_udp: Add a constructor for Transport. 2019-10-12 17:13:02 +02:00
Emmanuel Gil Peyrot
7f8cdc5bf0 jingle_dtls_srtp: Add constructors from Hash and from strings. 2019-10-12 17:11:34 +02:00
Emmanuel Gil Peyrot
fcdffba31c macros: Add support for wildcard namespaces. 2019-10-12 17:10:36 +02:00
Emmanuel Gil Peyrot
2eb521fa02 Add a Bookmarks 2 (This Time it's Serious) parser. 2019-09-29 01:47:21 +02:00
Emmanuel Gil Peyrot
d1d98ff3d5 Use crate::Element instead of minidom::Element.
This makes refactoring much easier.
2019-09-25 10:28:44 +02:00
Emmanuel Gil Peyrot
89d24de302 receipts: Update to XEP-0184 version 1.4.0. 2019-09-20 01:41:30 +02:00
Emmanuel Gil Peyrot
eac385700c bob, jid_prep, cert_management: Add size tests for 32-bit. 2019-09-17 17:14:56 +02:00
Emmanuel Gil Peyrot
c7038ace1a jingle, pubsub: Fix spelling thanks to codespell! 2019-09-08 18:24:45 +02:00
Emmanuel Gil Peyrot
a9a68cb1d7 jid_prep: Add constructor, documentation, and switch from Option<String> to String. 2019-09-08 16:22:12 +02:00
Emmanuel Gil Peyrot
9941e9c34f Add a new JID Prep parser (XEP-0328). 2019-09-08 16:09:49 +02:00
Emmanuel Gil Peyrot
46522ceb19 Add a new client certificate management parser (XEP-0257). 2019-09-08 15:53:55 +02:00
Emmanuel Gil Peyrot
943292a749 Implement occupant-id (XEP-0421). 2019-09-07 16:40:40 +02:00
Emmanuel Gil Peyrot
d58321ebba Add a new CSI parser (XEP-0352). 2019-09-07 16:32:35 +02:00
Emmanuel Gil Peyrot
b307652421 Remove unused base64 imports. 2019-09-07 16:21:42 +02:00
Emmanuel Gil Peyrot
0328ec446a error: Remove unused imports. 2019-09-07 16:18:25 +02:00
Emmanuel Gil Peyrot
f83e9fd928 error: implement std::error::Error. 2019-09-07 16:15:44 +02:00
Emmanuel Gil Peyrot
79804e2b01 error: Use better error messages. 2019-09-07 16:15:32 +02:00
Emmanuel Gil Peyrot
ff77f6141f Cleanup a1ae45add8 a bit. 2019-09-06 16:08:35 +02:00
Emmanuel Gil Peyrot
cdf80c8979 presence: Simplify constructors. 2019-09-06 15:00:14 +02:00
a5011c59ad Add structs for OpenPGP for XMPP (XEP-0373).
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-06 13:32:53 +02:00
Emmanuel Gil Peyrot
6f1fc7b009 bind: Easily convert BindResponse into FullJid or Jid. 2019-09-06 11:45:04 +02:00
a1ae45add8 Update minidom dependency to 0.11
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-06 10:57:50 +02:00
Emmanuel Gil Peyrot
0ef4ba7e55 tune: Add size checks for all elements. 2019-09-05 17:58:45 +02:00
Emmanuel Gil Peyrot
77920e5f46 New User Tune parser (XEP-0118). 2019-09-05 15:37:34 +02:00
Emmanuel Gil Peyrot
c77221e437 macros: Allow non-String in generate_elem_id!(). 2019-09-05 15:34:21 +02:00
Emmanuel Gil Peyrot
f25d4c79b7 xhtml: Use _ for children of Unknown. 2019-09-05 14:13:37 +02:00
Emmanuel Gil Peyrot
cde011aa5e xhtml: Panic on unknown elements still present after parsing. 2019-09-05 11:58:48 +02:00
Emmanuel Gil Peyrot
24e862e352 xhtml: Fix namespace on Body serialisation. 2019-09-05 11:51:05 +02:00
Emmanuel Gil Peyrot
f528a45568 xhtml: Automatically flatten on parsing. 2019-09-04 18:14:39 +02:00
Emmanuel Gil Peyrot
63d0265284 xhtml: Move Body out of Tag, because it is the only top-level element. 2019-08-25 20:02:33 +02:00
Emmanuel Gil Peyrot
2f45d586b5 xhtml: Add a tree generation example. 2019-08-25 20:02:06 +02:00
Emmanuel Gil Peyrot
7ebfe3e881 New XHTML-IM parser (XEP-0071). 2019-08-25 19:01:51 +02:00
Emmanuel Gil Peyrot
08c3cb8c6f bind: Document the split in ChangeLog. 2019-07-31 13:52:08 +02:00
Emmanuel Gil Peyrot
08fa36d186 Implement Bits of Binary. 2019-07-31 13:51:18 +02:00
Emmanuel Gil Peyrot
1eb8c781ab hashes: Add a from_hex constructor, and use it in Sha1HexAttribute. 2019-07-30 22:14:06 +02:00
Emmanuel Gil Peyrot
a8628a7870 ibr: Update the size tests.
Hashbrown has been stabilised, so HashMap is now two pointers bigger,
this reflects in this test.
2019-07-30 21:30:37 +02:00
Emmanuel Gil Peyrot
ecee3e9ee8 bind: Split Bind into request/response. 2019-07-30 21:25:27 +02:00
Emmanuel Gil Peyrot
f167e8b591 date: Follow clippy and remove a harmful reference. 2019-07-26 01:54:26 +02:00
Emmanuel Gil Peyrot
72ebd21767 hashes: Add base64, hex and colon-separated hex formatters on Hash. 2019-07-25 17:51:05 +02:00
Emmanuel Gil Peyrot
2234bb76f2 macros, pubsub: Fix build failure introduced in the previous commit. 2019-07-17 22:30:49 +02:00
Emmanuel Gil Peyrot
0aa5f5f60f lib: Stop reexporting TryFrom and TryInto.
They are available in std::convert nowadays, and should be imported from
there.
2019-07-17 22:26:41 +02:00
Emmanuel Gil Peyrot
329afabb66 Implement Message Carbons. 2019-07-17 21:58:39 +02:00
03a1d915a4 presence: Remove Show::None and make presence.show Option<Show>
This should make it easier to upgrade to minidom 0.11, to avoid having
to implement an Iterator for Show, and just implement Into<Node>.

It also makes a bit more sense to me semantically.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-26 02:07:00 +02:00
868164700a
Fix pep email address in copyright once and for all
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-26 02:06:38 +02:00
Emmanuel Gil Peyrot
bc480f8e7c Update test_size tests for 32-bit architectures 2019-06-12 13:53:18 +02:00
3178aaa1cb Update test_size tests 64bit archs with jid-rs change
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-10 23:17:49 +02:00
1e3f940db9 Update jid dependency to 0.6.0: Jid split change
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-10 23:17:38 +02:00
80bb6635a9 ns: add XEP-0277 microblog namespace
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-05-24 21:47:56 +02:00
Emmanuel Gil Peyrot
e6542fdb6b ibr: Ignore size tests, HashMap implementation changed and this added 16 bytes to every instance. 2019-05-09 16:21:28 +02:00