Commit graph

660 commits

Author SHA1 Message Date
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
1ded40b614 doap: Update to the latest specification
The xmpp-doap extension has be simplified to only expose the
SupportedXep class and its children properties, as well as categories,
and reuses DOAP to the maximum.
2019-07-27 15:52:43 +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
a7dbaee309 ChangeLog: Start the next entry. 2019-07-17 21:58:42 +02:00
Emmanuel Gil Peyrot
329afabb66 Implement Message Carbons. 2019-07-17 21:58:39 +02:00
Emmanuel Gil Peyrot
9d6a43f620 Add a DOAP file. 2019-07-17 20:27:22 +02:00
fb71acd8d1
Cargo.toml, ChangeLog: Release version 0.14.0
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-13 17:57:17 +02:00
linkmauve
f3eac84992 Merge branch 'presence-show-option' into 'master'
presence: Remove Show::None and make presence.show Option<Show>

See merge request xmpp-rs/xmpp-parsers!11
2019-07-13 15:27:24 +00: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
dabdc1db68 Fix rustdoc-args option for docs.rs
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-22 12:50:19 +01:00
Emmanuel Gil Peyrot
e1bd0086f1 time, date: Add missing docs. 2019-04-22 13:33:29 +02:00
Emmanuel Gil Peyrot
2d7bf32ad4 Add a XEP-0202 implementation.
Fixes #7.
2019-04-22 13:22:24 +02:00
Emmanuel Gil Peyrot
8db6b5602e Cargo.toml, ChangeLog: Release version 0.13.1. 2019-04-12 12:15:40 +02:00
Emmanuel Gil Peyrot
5bf14b0b22 Drop dependency on try_from.
This bumps the minimum supported stable Rust version to 1.34.

The TryFrom and TryInto traits are still reexported to not break the
API, but these reexports are deprecated and will be removed in a future
release.
2019-04-12 11:06:03 +02:00
Emmanuel Gil Peyrot
0d893edb69 avatar: Bump width/height to u16
This mirrors XEP revision 1.1.2, which made width and height
xs:unsignedShort instead of xs:unsignedByte, as per common usage.
2019-04-08 21:32:57 +02:00
Emmanuel Gil Peyrot
12265e9237 presence: Fix serialisation of priority. 2019-03-21 01:39:21 +01:00
Emmanuel Gil Peyrot
98c4c5b901 Cargo.toml: Release version 0.13.0. 2019-03-20 19:19:27 +01:00
Emmanuel Gil Peyrot
d329a473d4 ChangeLog: Mention XEP-0157 support, thanks pep.! 2019-03-20 19:17:21 +01:00
Emmanuel Gil Peyrot
00e19012e5 server_info: Implement Default and use it. 2019-03-20 19:10:48 +01:00
Emmanuel Gil Peyrot
cbc787a9d4 server_info: Remove remaining FORM_TYPE handling.
Also reenables the test.
2019-03-20 19:10:48 +01:00
ba5a014de9 XEP-0157: Contact Addresses for XMPP Services.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-03-20 19:10:43 +01:00
107bd90a87 Change pep's email address
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-03-20 18:55:20 +01:00
Emmanuel Gil Peyrot
5057905650 ChangeLog: Add imminent 0.13.0 release. 2019-03-20 18:52:20 +01:00
Emmanuel Gil Peyrot
3e41442702 jingle_drls_srtp: Add missing #[cfg(test)] on mod test. 2019-03-20 17:48:37 +01:00
Emmanuel Gil Peyrot
41bcf2dce7 examples: Add a caps/ecaps2 generator. 2019-03-03 20:13:51 +01:00