Commit graph

1449 commits

Author SHA1 Message Date
Emmanuel Gil Peyrot
0d893edb69 avatar: Bump width/height to u16
This mirrors XEP revision 1.1.2, which made width and height
xs:unsignedShort instead of xs:unsignedByte, as per common usage.
2019-04-08 21:32:57 +02:00
Emmanuel Gil Peyrot
92386fc488 Hello world! 2019-03-21 18:43:27 +01:00
Emmanuel Gil Peyrot
12265e9237 presence: Fix serialisation of priority. 2019-03-21 01:39:21 +01:00
Emmanuel Gil Peyrot
2e10ff8091 download_avatars: new example client 2019-03-20 20:14:22 +01:00
d04eb02d4c
Add "Contact Address for XMPP Services" (0157) example
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-03-20 18:47:31 +00:00
Emmanuel Gil Peyrot
63afd5d939 Bump xmpp-parsers to 0.13.
Fixes #4.
2019-03-20 19:27:10 +01:00
Emmanuel Gil Peyrot
98c4c5b901 Cargo.toml: Release version 0.13.0. 2019-03-20 19:19:27 +01:00
Emmanuel Gil Peyrot
d329a473d4 ChangeLog: Mention XEP-0157 support, thanks pep.! 2019-03-20 19:17:21 +01:00
Emmanuel Gil Peyrot
00e19012e5 server_info: Implement Default and use it. 2019-03-20 19:10:48 +01:00
Emmanuel Gil Peyrot
cbc787a9d4 server_info: Remove remaining FORM_TYPE handling.
Also reenables the test.
2019-03-20 19:10:48 +01:00
ba5a014de9 XEP-0157: Contact Addresses for XMPP Services.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-03-20 19:10:43 +01:00
107bd90a87 Change pep's email address
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-03-20 18:55:20 +01:00
Emmanuel Gil Peyrot
5057905650 ChangeLog: Add imminent 0.13.0 release. 2019-03-20 18:52:20 +01:00
Emmanuel Gil Peyrot
3e41442702 jingle_drls_srtp: Add missing #[cfg(test)] on mod test. 2019-03-20 17:48:37 +01:00
Astro
f7b02c210d Merge branch 'typo-fix' into 'master'
Fix a typo in documentation

See merge request xmpp-rs/tokio-xmpp!3
2019-03-12 00:32:56 +00:00
Voker57
11a45a1330 Fix a typo in documentation 2019-03-11 19:00:25 +00:00
lumi
efb283f6fe Merge branch 'nicer-debug' into 'master'
Implement a nicer Debug for NamespaceSet

See merge request lumi/minidom-rs!33
2019-03-06 14:27:47 +00:00
Emmanuel Gil Peyrot
41bcf2dce7 examples: Add a caps/ecaps2 generator. 2019-03-03 20:13:51 +01:00
Emmanuel Gil Peyrot
af8cf177ce ecaps2: Add a constructor. 2019-03-03 20:08:27 +01:00
Emmanuel Gil Peyrot
36d6169386 jingle_ice_udp: Add DTLS-SRTP support. 2019-02-28 13:54:54 +01:00
Emmanuel Gil Peyrot
429fc387b5 jingle_drls_srtp: Add a new parser and serialiser. 2019-02-28 13:33:18 +01:00
Emmanuel Gil Peyrot
7fc5dea4d6 jingle_ice_udp, jingle_rtp: Add a size test. 2019-02-28 03:47:04 +01:00
Emmanuel Gil Peyrot
5592c11745 jingle_ice_udp: Use an IpAddr for rel-addr too. 2019-02-28 03:36:04 +01:00
Emmanuel Gil Peyrot
ba875cfd2a jingle_rtp: Put Channel code into a macro, to generate it automatically. 2019-02-28 03:10:21 +01: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
2b9a6d57b6 jingle: Support more than one <text/> with different @xml:lang. 2019-02-28 02:40:53 +01:00
Emmanuel Gil Peyrot
b56582c8b5 disco: Use a macro for <identity/>. 2019-02-28 02:26:10 +01:00
Emmanuel Gil Peyrot
c4d867571e Also reexport TryInto from try_from. 2019-02-27 23:27:40 +01:00
Emmanuel Gil Peyrot
1496819546 Implement a nicer Debug for NamespaceSet
The existing one was quite hard to parse visually, this makes it a lot
easier to understand what is what.
2019-02-27 20:00:02 +01:00
Emmanuel Gil Peyrot
f8aedb0da1 jingle_ice_udp: Add missing file… 2019-02-27 18:32:38 +01:00
Emmanuel Gil Peyrot
beacbaeb86 jingle_ice_udp: Add a new parser/serialiser for XEP-0176. 2019-02-27 18:13:37 +01:00
Emmanuel Gil Peyrot
40d397c1fe jingle_rtp: Add a new parser/serialiser for XEP-0167. 2019-02-27 18:13:37 +01:00
Emmanuel Gil Peyrot
017fb0fbd1 stanza_error: Add a constructor. 2019-02-26 21:33:45 +01:00
Emmanuel Gil Peyrot
ab28824b1a presence: Simplify Presence::set_status with Into<String>. 2019-02-26 19:51:52 +01:00
Emmanuel Gil Peyrot
dd80f55c5f disco: Add constructors for Identity, and fix Feature’s. 2019-02-26 19:44:00 +01: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
bcd42a26e3 macros: Use a nicer syntax when declaring attributes.
The previous version had a => required|optional|default token, this was
duplicating information for Option types and didn’t look very good.

This new version looks like a type, which can be either Required<_>,
Option<_> or Default<_>, and means the same thing.
2019-02-24 20:26:42 +01:00
Emmanuel Gil Peyrot
f2c3f45a6f data_forms: Stop duplicating FORM_TYPE in memory.
The FORM_TYPE is now only present once, as the form_type member of the
DataForm struct, it isn’t duplicated in fields anymore.

This removes the need to ignore this special field in every single
protocol built on XEP-0128.
2019-02-24 19:52:59 +01:00
a076221c9a Add rustdoc flag to sort modules by XEP number
`--sort-modules-by-appearance` needs to be passed to rustdoc for this to
happen. I haven't found a way to make it so that we don't have to add
this flag manually each time we build locally. This config option should
at least fix it for docs.rs.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 13:42:09 +01:00
lumi
823810e2e0 Merge branch 'master' into 'master'
Fix clippy lints

See merge request lumi/minidom-rs!32
2019-02-21 20:14:36 +00:00
Emmanuel Gil Peyrot
f68826057b Fix clippy lints 2019-02-21 21:06:23 +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
Astro
fc5569a765 add logo 2019-02-14 20:02:37 +01:00
Astro
12e2f4e7e7 tokio-xmpp 1.0.0 2019-01-29 23:08:27 +01:00
Astro
1d69b1a256 improve echo_bot example 2019-01-29 23:06:07 +01:00
Astro
2654722fa3 client: switch SinkItem to Packet
this breaks backwards compatibility
2019-01-29 01:53:00 +01:00