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
Emmanuel Gil Peyrot
ff77f6141f
Cleanup a1ae45add8
a bit.
2019-09-06 16:08:35 +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
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
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
a62b184d54
stanza_error: Use a mutable struct first.
2019-02-28 02:54:13 +01:00
Emmanuel Gil Peyrot
fb4a3dcba8
stanza_error: Add missing attribute checks.
2019-02-28 02:48:50 +01:00
Emmanuel Gil Peyrot
4f64754bdc
stanza_error: Simplify serialisation.
2019-02-28 02:44:31 +01:00
Emmanuel Gil Peyrot
017fb0fbd1
stanza_error: Add a constructor.
2019-02-26 21:33:45 +01:00
Emmanuel Gil Peyrot
ae3a5b6725
macros: Remove backwards-compatibility variants introduced in the previous commit.
2019-02-24 20:48:19 +01:00
Emmanuel Gil Peyrot
637c3eadd7
Fix clippy lints.
2019-02-21 21:00:58 +01: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
376ccc1c06
Run cargo fmt
on some more files.
2018-12-18 16:07:46 +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
7a2dcbee01
Test struct sizes on 32-bit too.
2018-10-28 13:10:48 +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
07cccad356
message: Make MessagePayload a trait, and implement it on every payload.
2018-09-20 20:58:27 +02:00
Emmanuel Gil Peyrot
e41de29d9d
presence: Make PresencePayload a trait, and implement it on every payload.
2018-09-20 20:51:48 +02:00
Emmanuel Gil Peyrot
f3366b94bb
stanza_error: Fix compilation error due to an extra pub.
2018-09-20 20:28:29 +02:00
Emmanuel Gil Peyrot
388941b483
stanza_error: Document this module.
2018-09-19 21:26:21 +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
3d495ccf41
Use check_no_children!() where it makes sense.
2018-05-14 16:33:47 +02:00
Emmanuel Gil Peyrot
93b018e5ac
macros: Remove use requirement on ns.
2018-05-14 16:30:28 +02:00
Emmanuel Gil Peyrot
0d4327eb42
macros: Remove use requirement on minidom::IntoAttributeValue.
2018-05-14 16:12:56 +02:00
Emmanuel Gil Peyrot
040792c242
macros: Remove use requirement on std::str::FromStr.
2018-05-14 16:11:22 +02:00
Emmanuel Gil Peyrot
6bb466eea2
Use check_self!() where it makes sense.
2018-05-12 18:31:11 +02:00
Emmanuel Gil Peyrot
ef04d2e524
stanza_error: Generate DefinedCondition automatically.
2017-11-24 04:30:33 +00:00
Emmanuel Gil Peyrot
f69f567448
Use minidom 0.6.1’s Element::has_ns(), to simplify namespace comparisons.
2017-08-27 01:04:56 +01:00
Astro
1b1661fd82
Introduce comparing with namespace support.
2017-08-19 00:04:18 +01:00
Emmanuel Gil Peyrot
69cc83c456
message, iq, presence, stanza_error, forwarded: Add support for components hidden behind the component feature flag.
2017-07-29 06:49:02 +01:00
Emmanuel Gil Peyrot
99b9525e6f
Update to jid-rs 0.2.3, which implements IntoAttributeValue on Jid.
2017-07-29 06:28:20 +01:00
Emmanuel Gil Peyrot
21cee25b27
Replace .and_then() with .map() wherever it makes sense.
2017-07-21 01:19:34 +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
0f297d2d2d
Add a generate_attribute! macro, and use it for the common case.
2017-06-14 00:50:57 +01:00
Emmanuel Gil Peyrot
764a7190e9
stanza_error: Simplify with IntoElements.
2017-05-25 01:14:36 +01:00
Emmanuel Gil Peyrot
3678d9f0d3
stanza_error: Simplify attribute handling.
2017-05-24 23:56:35 +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
e3f1f31718
delay, eme, stanza_error: Use get_attr!.
2017-05-23 01:02:23 +01:00
Emmanuel Gil Peyrot
4ec92b16ac
Fix most clippy warnings.
2017-05-07 15:23:06 +01:00
Emmanuel Gil Peyrot
04d90f22ee
stanza_error: Switch to Into/TryFrom.
2017-05-06 21:13:53 +01:00
Emmanuel Gil Peyrot
2465885975
Add a stanza error parser and serialiser.
2017-05-01 01:24:45 +01:00