Commit graph

1500 commits

Author SHA1 Message Date
Emmanuel Gil Peyrot
1638288644 Reimplement std::error::Error for Error.
It was removed with the removal of failure, but like in minidom (#18) it
was probably used by people, so let’s reintroduce it.
2019-09-07 16:08:53 +02:00
Emmanuel Gil Peyrot
11a5c49470 Implement std::error::Error for Error.
This was removed in 0.11.1 with the removal of failure, but is used by
people so let’s reintroduce it.

The cause of an XmlError is pending on this PR from quick-xml:
https://github.com/tafia/quick-xml/pull/170

Fixes #15.
Fixes #18.
2019-09-07 16:04:13 +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
Emmanuel Gil Peyrot
d3157c77f0 doap: Add XEP-0373 there. 2019-09-06 13:41:10 +02:00
Emmanuel Gil Peyrot
ecd9502f58 doap: Update for the latest release. 2019-09-06 13:37:03 +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
188de32dac Prepare for the 0.15.0 release. 2019-09-06 11:45:46 +02:00
Emmanuel Gil Peyrot
6f1fc7b009 bind: Easily convert BindResponse into FullJid or Jid. 2019-09-06 11:45:04 +02:00
Emmanuel Gil Peyrot
b244a21e1a Prepare for 0.7.1 release. 2019-09-06 11:39:03 +02:00
Emmanuel Gil Peyrot
0db94e554d Prepare for 0.11.1 release. 2019-09-06 11:33:32 +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
ed28ba1a7d Remove the derive-error dependency.
It depends on a way too old syn crate, let’s drop it.
2019-09-05 22:25:42 +02:00
Emmanuel Gil Peyrot
17f902b503 Update to quick-xml 0.16. 2019-09-05 21:31:42 +02:00
6f79508b09 Merge branch 'no-failure' into 'master'
Remove failure

See merge request xmpp-rs/minidom-rs!38
2019-09-05 19:27:59 +00:00
e2f9bdbf1b Merge branch 'no-failure' into 'master'
Remove failure

See merge request xmpp-rs/jid-rs!19
2019-09-05 19:21:27 +00:00
Emmanuel Gil Peyrot
b4035d1227 Remove failure. 2019-09-05 20:15:20 +02:00
Emmanuel Gil Peyrot
cba7a31ea0 Remove failure. 2019-09-05 19:46:13 +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
9eb302851e
Update chatroom URI
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-03 23:21:39 +02:00
d5789ea1d1 Merge branch 'master' into 'master'
Impl Display for Jid

See merge request xmpp-rs/jid-rs!18
2019-08-31 13:17:51 +00:00
Randy von der Weide
56986a68e4 Impl Display for Jid 2019-08-31 13:17:51 +00: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
ea88adbafb Merge branch 'optional-comments' into 'master'
Make comments optional

See merge request xmpp-rs/minidom-rs!36
2019-08-22 16:18:07 +00:00
Emmanuel Gil Peyrot
a91252c861 Make comments optional.
Add a default "comments" feature to transform comments into errors when
unset.

This is so that XMPP implementations don’t have to care about comments,
as they can’t happen in the stream.
2019-08-22 18:11:22 +02:00
aa8018d999
Update to quick-xml 0.15
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-21 10:32:32 +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
1f96d82cb8
Remove trailing whitespace
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-27 13:14:37 +02:00
Emmanuel Gil Peyrot
f167e8b591 date: Follow clippy and remove a harmful reference. 2019-07-26 01:54:26 +02:00
bf1c2bd48b
Release version 0.7.0
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-26 01:43:57 +02:00
8f73813b53 Merge branch 'update-minidom' into 'master'
Update minidom dep to 0.11

See merge request xmpp-rs/jid-rs!16
2019-07-25 23:40:21 +00: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
d989974f69 Don’t download avatars again if they are already present on the fs. 2019-07-25 17:42:30 +02:00
Emmanuel Gil Peyrot
8e0bcaed14 Autojoin MUCs from bookmarks.
When the JoinRooms ClientFeature is enabled, we want to automatically
receive bookmarks and join them when they are added.
2019-07-25 17:16:50 +02:00
Emmanuel Gil Peyrot
9df465d940 Add various metadata to Cargo.toml. 2019-07-25 15:37:00 +02:00
Emmanuel Gil Peyrot
68b389277e Add the missing license file. 2019-07-25 15:36:45 +02:00
Emmanuel Gil Peyrot
88041550b9 Check that the received roster is from our own account. 2019-07-25 15:04:13 +02:00