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
96c8b05677
Do some manual formatting in macros.
2018-12-29 18:29:11 +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
3f4586caba
presence: Add status and payload insertion helpers.
2018-11-02 16:29:11 +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
c508275f40
presence: Finish to document this module.
2018-09-20 21:08:46 +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
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
6bb466eea2
Use check_self!() where it makes sense.
2018-05-12 18:31:11 +02:00
Emmanuel Gil Peyrot
e0438f9b88
jingle_message, muc, presence, version: Always use the check_no_attributes macro.
2018-05-12 17:59:04 +02: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
87af0f3615
message, presence, iq: Improve documentation.
2017-07-20 23:10:13 +01:00
Emmanuel Gil Peyrot
5df585ca40
data_forms, ibr, message, presence, roster: Always use into_iter.
2017-07-20 23:09:22 +01:00
Emmanuel Gil Peyrot
f6f6faeb77
iq, jingle_ft: Simplify item counting with Iterator::count().
2017-07-20 23:08:23 +01:00
Maxime “pep” Buquet
2571aa7666
presence: Add with_ helpers to build a Presence
2017-07-19 00:21:44 +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
244c9b2710
presence: Remove unused import in tests.
2017-06-27 22:21:35 +01:00
Emmanuel Gil Peyrot
8ac4602240
presence: Add a simpler way to create a Presence.
2017-06-26 19:49:16 +01:00
Maxime “pep” Buquet
c4c6528197
Muc <x xmlns=' http://jabber.org/protocol/muc'/ > parser
2017-05-30 22:02:56 +01:00
Emmanuel Gil Peyrot
9eb8f39a38
presence: Make Show handle the None case, and rename PresenceType to Type.
2017-05-28 17:10:12 +01:00
Emmanuel Gil Peyrot
32bfa84551
presence: Rename Available to None, since that’s what it is.
2017-05-28 16:33:43 +01:00
Emmanuel Gil Peyrot
357568813d
presence: Wire up legacy caps.
2017-05-27 12:21:32 +01:00
Emmanuel Gil Peyrot
fbeeae5c64
presence: Simplify the code.
2017-05-24 21:30:33 +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
d61d09f5b7
hashes, presence, message, iq, disco: Use get_attr!.
2017-05-22 19:00:04 +01:00
Emmanuel Gil Peyrot
34ee6d52dc
presence: Wire up idle as a payload.
2017-05-21 20:30:42 +01:00
Emmanuel Gil Peyrot
80695edb72
chatstates, ping, presence: Check for extraneous attributes.
2017-05-21 16:44:35 +01:00
Emmanuel Gil Peyrot
2b8bcebfd9
message, iq, presence: Return an Unknown instead of an error when the element is unknown.
2017-05-19 02:09:23 +01:00
Emmanuel Gil Peyrot
0ad6893d52
presence: Stop parsing payloads automatically.
2017-05-18 23:32:44 +01:00
Emmanuel Gil Peyrot
fe8dccd5df
presence: Remove now-unused enum values.
2017-05-18 23:32:26 +01:00
Emmanuel Gil Peyrot
4ec92b16ac
Fix most clippy warnings.
2017-05-07 15:23:06 +01:00
Emmanuel Gil Peyrot
69cfb14c77
presence: Switch to Into/TryFrom.
2017-05-06 21:24:17 +01:00
Emmanuel Gil Peyrot
04d90f22ee
stanza_error: Switch to Into/TryFrom.
2017-05-06 21:13:53 +01:00
Emmanuel Gil Peyrot
f963715e77
ecaps2: Switch to Into/TryFrom.
2017-05-06 20:58:22 +01:00
Emmanuel Gil Peyrot
0f58e650b7
delay: Switch to Into/TryFrom.
2017-05-06 20:42:12 +01:00
Emmanuel Gil Peyrot
29725b9d4d
Update to minidom 0.3.0.
2017-05-04 01:20:22 +01:00
Emmanuel Gil Peyrot
3dd0eb3a9b
presence: Wire up stanza_error.
2017-05-01 01:02:35 +01:00
Emmanuel Gil Peyrot
e03a5a89e7
presence: Prevent two statuses from having the same lang.
2017-04-30 22:45:39 +01:00
Emmanuel Gil Peyrot
0abac5ad2d
presence: Make statuses addressable by their xml:lang.
2017-04-30 22:07:32 +01:00
Emmanuel Gil Peyrot
1909ae33dc
presence: make show, statuses and priority first-class elements.
2017-04-30 22:00:29 +01:00