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
7f12d05fd2
Switch allow→deny(missing_docs) for the whole crate.
2018-08-08 18:48:05 +02:00
Emmanuel Gil Peyrot
955f2809be
rsm: Fix the description of the two <set/> elements.
2018-08-02 20:43:47 +02:00
Emmanuel Gil Peyrot
14b4d51d7f
rsm: Split Set into SetQuery and SetResult, and document this.
2018-08-02 20:35:15 +02:00
Emmanuel Gil Peyrot
93b018e5ac
macros: Remove use requirement on ns.
2018-05-14 16:30:28 +02:00
Emmanuel Gil Peyrot
6bb466eea2
Use check_self!() where it makes sense.
2018-05-12 18:31:11 +02:00
Emmanuel Gil Peyrot
7950fe8f52
rsm: Simplify serialisation.
2017-10-31 22:21:50 +00:00
Astro
1b1661fd82
Introduce comparing with namespace support.
2017-08-19 00:04:18 +01:00
Emmanuel Gil Peyrot
dfb736a973
rsm: Change if .is_some() { .unwrap() } into if let Some().
2017-07-29 03:03:45 +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
6794b34714
Cargo.toml: Update minidom to 0.4.3 to use its new IntoAttributeValue implementation on numbers.
2017-05-27 23:18:15 +01:00
Emmanuel Gil Peyrot
ecd98251bf
rsm: Remove useless clones.
2017-05-24 21:44: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
a4f50f2d43
jingle_ibb, ibb, rsm: Simplify attribute parsing.
2017-05-21 16:08:25 +01:00
Emmanuel Gil Peyrot
3c083709cb
rsm, ibb: Write and use a macro to parse attributes.
2017-05-21 16:03:17 +01:00
Emmanuel Gil Peyrot
16899f8c23
rsm: Add a test for <first/>.
2017-05-21 15:41:16 +01:00
Emmanuel Gil Peyrot
61839042bd
rsm: Split First into two options, and generate Set earlier during parsing.
2017-05-21 15:30:22 +01:00
Emmanuel Gil Peyrot
967d4af843
rsm: Rename First id to make it more explicit.
2017-05-19 02:58:18 +01:00
Emmanuel Gil Peyrot
de8fe4bf02
rsm: Switch to Into/TryFrom.
2017-05-06 20:14:45 +01:00
Emmanuel Gil Peyrot
407e4cceb4
License the project under MPL-2.0.
2017-04-29 22:14:34 +01:00
Emmanuel Gil Peyrot
72a6eee2fd
Add a RSM parser and serialiser.
2017-04-29 04:37:18 +01:00