dc76f296de
Prepare for merge: Move all xmpp-parsers files into xmpp-parsers/
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-18 13:47:10 +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
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
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
409a1dafa9
Move Error, helpers and macros into a util module.
2019-01-13 12:39:51 +01:00
Emmanuel Gil Peyrot
c2b7e19378
Rename "compat" into "disable-validation", to insist on it breaking some guarantees.
2019-01-12 22:00:46 +01:00
Astro
95f4ade4ba
compat mode that relaxes some of the check_* macros
2018-12-30 00:36:29 +01:00
Emmanuel Gil Peyrot
efd7bd5f2f
Run cargo fmt
.
2018-12-18 15:32:05 +01:00
Emmanuel Gil Peyrot
6b2dd8fe5e
Run cargo fix --edition
to move to Edition 2018.
2018-12-18 15:27:30 +01:00
Emmanuel Gil Peyrot
40aedcf184
Test the size of every struct defined here.
2018-10-26 14:26:16 +02:00
Emmanuel Gil Peyrot
7f12d05fd2
Switch allow→deny(missing_docs) for the whole crate.
2018-08-08 18:48:05 +02:00
Emmanuel Gil Peyrot
61644e5557
ping: Document this module.
2018-07-31 23:09:53 +02:00
Emmanuel Gil Peyrot
412eafb363
iq: Implement the Iq*Payload traits on every possible payload.
2018-05-16 15:08:17 +02:00
Emmanuel Gil Peyrot
93b018e5ac
macros: Remove use requirement on ns.
2018-05-14 16:30:28 +02:00
Emmanuel Gil Peyrot
d9aaa3e9ce
macros: Remove use requirement on error::Error.
2018-05-14 16:21:39 +02:00
Emmanuel Gil Peyrot
6f497027f5
macros: Remove use requirement on minidom::Element.
2018-05-14 16:17:21 +02:00
Emmanuel Gil Peyrot
292cdd059c
macros: Remove use requirement on try_from::TryFrom.
2018-05-14 16:07:15 +02:00
Emmanuel Gil Peyrot
ed53f452c3
ping: Add a serialise test.
2017-10-31 17:57:49 +00:00
Emmanuel Gil Peyrot
cfbfce512e
lib, ping, attention: Add a macro for singleton elements.
2017-10-10 17:53:25 +01:00
Emmanuel Gil Peyrot
7612c53f9a
attention, chatstates, eme, ping: Add a docstring on the structs.
2017-07-20 23:47:21 +01:00
Emmanuel Gil Peyrot
487dbdc6de
Replace Into<Element> with From<…> for Element.
...
This allows Element::from() to work, and since Into<Element> is
automatically implemented for any type implementing From there is no
change to existing code.
2017-07-20 20:36:13 +01:00
Emmanuel Gil Peyrot
1f43cd934b
Use TryFrom from the try_from crate, instead of the unstable feature.
...
This makes xmpp-parsers usable on stable.
2017-07-20 20:03:15 +01:00
Emmanuel Gil Peyrot
16e43c0b01
Convert all of the parsers/serialisers into consuming their parameter.
2017-05-23 23:31:33 +01:00
Emmanuel Gil Peyrot
80695edb72
chatstates, ping, presence: Check for extraneous attributes.
2017-05-21 16:44:35 +01:00
Emmanuel Gil Peyrot
033cbe777b
ping: Port to TryFrom/Into.
2017-05-04 01:31:13 +01:00
Emmanuel Gil Peyrot
407e4cceb4
License the project under MPL-2.0.
2017-04-29 22:14:34 +01:00
Maxime “pep” Buquet
c462d230f1
ping, iq: Implement ping::serialise_ping and link to Iq.
2017-04-23 21:17:26 +01:00
Emmanuel Gil Peyrot
15634b6500
ping: Remove extraneous brackets.
2017-04-23 03:45:14 +01:00
Emmanuel Gil Peyrot
62d9385728
Make all parsed types implement Clone.
2017-04-21 00:41:15 +01:00
Emmanuel Gil Peyrot
7288c2c74f
Import ns itself, and remove the _NS suffix on all namespaces.
2017-04-20 23:16:12 +01:00
Emmanuel Gil Peyrot
b8b0494c19
Fix a stupid copy/paste syntax error.
2017-04-20 00:14:29 +01:00
Emmanuel Gil Peyrot
fc7a0517d3
Replace assert!()s with proper errors in parsers.
2017-04-19 23:41:54 +01:00
Emmanuel Gil Peyrot
fdc76eca3c
Add a ping parser.
2017-04-19 18:59:07 +01:00