Commit graph

1377 commits

Author SHA1 Message Date
Emmanuel Gil Peyrot
cbce8a5e7f Fix avatar retrieval. 2019-09-13 00:19:53 +02:00
linkmauve
c17d43b685 Merge branch 'agent-clone' into 'master'
Agent clone

See merge request linkmauve/xmpp-rs!4
2019-09-12 19:38:18 +00:00
linkmauve
1d05832616 Merge branch 'update-deps' into 'master'
Update tokio-xmpp to 1.0.1 and xmpp-parsers to 0.15

See merge request linkmauve/xmpp-rs!3
2019-09-12 19:38:06 +00:00
b1e8b9ee58
derive Clone for Agent
This can be required when dealing with async code. I'm happy for you to
show me other ways if you think it's not necessary.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-11 16:25:20 +02:00
b6369741cd
Update tokio-xmpp to 1.0.1 and xmpp-parsers to 0.15
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-11 16:11:32 +02:00
Astro
a572bf4dea tokio-xmpp 1.0.1 2019-09-09 15:29:50 +02:00
Astro
fd27582ac7 examples: remove a few .clone() calls 2019-09-09 14:57:08 +02:00
Astro
c880820c4a Merge branch 'sonnyx/master' 2019-09-09 14:25:09 +02:00
b4f2515fb5 Merge branch 'moar-jid-helpers' into 'master'
Add more helpers on Jid to convert to Bare/FullJid

See merge request xmpp-rs/jid-rs!20
2019-09-08 21:29:53 +00:00
0138a62957 Add more helpers on Jid to convert to Bare/FullJid
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-08 23:25:06 +02:00
SonnyX
3b37646d0a Update dependencies 2019-09-08 21:28:44 +02:00
Astro
2016af55b2 Merge branch 'remove-derive-error' into 'master'
Remove the derive-error dependency

See merge request xmpp-rs/tokio-xmpp!8
2019-09-08 18:48:18 +00: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
6e72e1252c Merge branch 'trim-whitespace' into 'master'
Fixes #11: Trim whitespace before feeding parser

Closes tokio-webhook2muc#2 and #11

See merge request xmpp-rs/tokio-xmpp!9
2019-09-08 14:14:52 +00: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
2e97f4de2e
Fixes #11: Trim whitespace before feeding parser
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-08 15:13:09 +02:00
Emmanuel Gil Peyrot
d9a6aeea99 doap, ChangeLog: Add support for occupand-id (XEP-0421). 2019-09-07 16:43:05 +02:00
Emmanuel Gil Peyrot
943292a749 Implement occupant-id (XEP-0421). 2019-09-07 16:40:40 +02:00
Emmanuel Gil Peyrot
8e9f247294 doap: Add CSI support. 2019-09-07 16:37:40 +02:00
Emmanuel Gil Peyrot
05ab0cdc38 Add a new CSI parser (XEP-0352). 2019-09-07 16:36:04 +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
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