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
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
82eda09ca5
iq: Allow any Into<String> for the constructors’ id.
2019-02-26 19:25:43 +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
63dcba03b2
iq: Make @id required, as per RFC6120 §8.1.3.
2019-02-21 20:48:02 +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
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
b8f083eb0a
iq: Document this module.
2018-08-08 19:52:37 +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
d5f88d2636
iq: Add helper constructors.
2018-05-16 14:49:00 +02:00
Emmanuel Gil Peyrot
d29021b85c
iq: Replace clunky payload enums with proper traits.
2018-05-16 14:48:29 +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
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
db35d28c9c
ibb: Split the stupid enum into three different structs.
2017-07-29 03:44:35 +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
f6f6faeb77
iq, jingle_ft: Simplify item counting with Iterator::count().
2017-07-20 23:08:23 +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
0fcbf11644
iq: Split IqPayload into all three possible types.
2017-07-20 18:31:17 +01:00
Emmanuel Gil Peyrot
76a46559b8
disco: Split query and result.
2017-07-20 17:39:59 +01:00
Emmanuel Gil Peyrot
073e208f06
iq: Wire up Roster.
2017-05-28 17:12:46 +01:00
Emmanuel Gil Peyrot
8182213666
iq: Reintroduce a reference Into to get the type from the payload.
2017-05-24 21:35:09 +01:00
Emmanuel Gil Peyrot
21b92621f0
iq, message: Remove useless clone on unknown element.
2017-05-24 21:32:04 +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
d680c31cf9
iq, message: Wire up MAM to the payloads.
2017-05-19 02:58: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
dcb7ac8db2
iq: Remove a panic!
2017-05-19 00:10:23 +01:00
Emmanuel Gil Peyrot
6df3c4a679
iq: Remove a bunch of clones.
2017-05-19 00:07:51 +01:00
Emmanuel Gil Peyrot
65469db1e3
iq: Stop parsing the payload automatically.
2017-05-19 00:04:42 +01:00
Emmanuel Gil Peyrot
4407183010
iq: Move IqPayload parsing into its own Into implementation.
2017-05-18 23:50:08 +01:00
Emmanuel Gil Peyrot
fffaca316f
iq: Switch to Into/TryFrom.
2017-05-06 21:16:56 +01:00
Emmanuel Gil Peyrot
04d90f22ee
stanza_error: Switch to Into/TryFrom.
2017-05-06 21:13:53 +01:00
Emmanuel Gil Peyrot
2b49d8aa53
disco: Switch to Into/TryFrom.
2017-05-06 21:01:15 +01:00
Emmanuel Gil Peyrot
e3acb55b49
ibb: Port to TryFrom/Into.
2017-05-04 23:11:10 +01:00
Emmanuel Gil Peyrot
033cbe777b
ping: Port to TryFrom/Into.
2017-05-04 01:31:13 +01:00
Emmanuel Gil Peyrot
6c4fd8da01
jingle: Update to Into and TryFrom.
2017-05-04 01:20:28 +01:00
Emmanuel Gil Peyrot
c0b7c9da88
iq: Remove unused variable causing a warning.
2017-05-01 01:50:38 +01:00
Emmanuel Gil Peyrot
f3b55350ad
iq: Wire up stanza_error.
2017-05-01 01:23:56 +01:00
Emmanuel Gil Peyrot
407e4cceb4
License the project under MPL-2.0.
2017-04-29 22:14:34 +01:00