Commit graph

1462 commits

Author SHA1 Message Date
Astro
b141559081 rename namespaces mod to namespace_set 2017-08-13 17:29:38 +02:00
Astro
7297dbc5fd namespaces: add some tests 2017-08-13 02:48:28 +02:00
Astro
0148790a01 move NamespaceSet to namespaces mod 2017-08-13 02:35:24 +02:00
Astro
7d2699e08e NamespaceSet::set_parent(): don't require a full Element
by passing just a reference to a NamespaceSet we could reuse this for
xmlns elision in the serialization code.
2017-08-13 02:28:44 +02:00
Astro
98fd71fd3f NamespaceSet: rm unneeded cast 2017-08-13 02:26:45 +02:00
Astro
26f03c27ed optimize Element::write_to_inner() with CoW 2017-08-13 02:24:40 +02:00
Astro
a01cf553ae switch Element namespaces to NamespaceSet with parent reference 2017-08-13 02:24:34 +02:00
Astro
77bc215cba tests: add namespace inheritance tests 2017-08-13 02:19:17 +02:00
lumi
db3c4e43e3 Merge branch 'escaping' into 'master'
escape text and attribute values

See merge request !15
2017-08-12 11:08:50 +00:00
Astro
052c46635a escape text and attribute values 2017-08-12 02:05:18 +02:00
Emmanuel Gil Peyrot
1af06fdf6d Add an iq version parser (XEP-0092). 2017-07-29 11:45:45 +01:00
lumi
cbff99b73d bump version 2017-07-29 12:06:53 +02:00
lumi
0ed1a00c17 Merge branch 'minidom' into 'master'
Optionally implement minidom::IntoAttributeValue

See merge request !6
2017-07-29 10:05:41 +00: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
d55fa8e5dd chatstates: Prevent compilation if the module isn’t properly documented. 2017-07-29 06:26:50 +01:00
Emmanuel Gil Peyrot
a04c395122 roster: Document most structs and their fields. 2017-07-29 06:22:35 +01:00
Emmanuel Gil Peyrot
56a66f8c4b message: Enforce more type safety on Body, Subject and Thread. 2017-07-29 06:11:48 +01:00
Emmanuel Gil Peyrot
6ec1e46953 roster: Make Group a proper struct. 2017-07-29 05:36:59 +01:00
Emmanuel Gil Peyrot
5388696b95 lib: Remove erroneous “reference” mention in the module docstring. 2017-07-29 05:24:20 +01:00
Emmanuel Gil Peyrot
5bd0feb178 optionally implement minidom::IntoAttributeValue 2017-07-29 05:11:30 +01:00
Emmanuel Gil Peyrot
45d196463c disco: Document every struct and their fields. 2017-07-29 04:51:51 +01:00
Emmanuel Gil Peyrot
67e72b009e disco: Fix serialisation of extensions, and add a test. 2017-07-29 04:39:50 +01:00
Emmanuel Gil Peyrot
4d3717d170 disco: Split Feature and Identity parsing out of DiscoQueryResult. 2017-07-29 04:35:15 +01:00
Emmanuel Gil Peyrot
5ece20a029 disco: Create a mutable DiscoInfoResult at the beginning of its parsing. 2017-07-29 04:25:55 +01:00
Emmanuel Gil Peyrot
58760fc28d data_forms: Split field parsing into its own TryFrom impl. 2017-07-29 04:19:58 +01:00
Emmanuel Gil Peyrot
37d1ae64ad receipts: Split the stupid enum into two different structs. 2017-07-29 04:00:25 +01:00
Emmanuel Gil Peyrot
a0b1d93ff0 stanza_id: Split the stupid enum into two different structs. 2017-07-29 03:51:41 +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
dfb736a973 rsm: Change if .is_some() { .unwrap() } into if let Some(). 2017-07-29 03:03:45 +01:00
Emmanuel Gil Peyrot
f83fe92244 jingle: Wrap the disposition in a struct, to get better type safety. 2017-07-29 02:47:33 +01:00
Emmanuel Gil Peyrot
75ae6100b4 data_forms: Remove unneccessary swallowing of an error. 2017-07-29 02:41:42 +01:00
Emmanuel Gil Peyrot
4b3ced042e ecaps2, jingle_s5b: Replace drain() with into_iter(). 2017-07-26 00:04:20 +01:00
Emmanuel Gil Peyrot
7511ca46c5 Added tag v0.7.1 for changeset 714dc06b558a 2017-07-24 23:11:34 +01:00
Emmanuel Gil Peyrot
712e6dfe11 Release version 0.7.1. 2017-07-24 23:11:31 +01:00
Emmanuel Gil Peyrot
83c9713ab9 caps, ecaps2: Make Blake2b panic and update the blake2 crate to 0.6.1.
See https://github.com/RustCrypto/hashes/issues/34 for more information.
2017-07-24 23:11:10 +01:00
Astro
ff165d745d Cargo.toml: update minidom to 0.4.4 2017-07-23 23:53:08 +02:00
Emmanuel Gil Peyrot
6e506fbc57 Cargo.toml, echo_bot: update xmpp-parsers to 0.7.0 2017-07-23 23:50:43 +02:00
lumi
6ad21dbf83 Merge branch 'xmpp-parsers-0.7.0' into 'master'
update to xmpp-parsers 0.7.0

See merge request !31
2017-07-23 18:06:49 +00:00
Emmanuel Gil Peyrot
ba8c86620a update to xmpp-parsers 0.7.0 2017-07-23 18:59:41 +01:00
Emmanuel Gil Peyrot
9e6e84fcb4 Added tag v0.7.0 for changeset 28ea59e51a98 2017-07-23 18:47:53 +01:00
Emmanuel Gil Peyrot
e26bd3306e Release version 0.7.0. 2017-07-23 18:47:46 +01:00
Emmanuel Gil Peyrot
85ea78d5a7 ChangeLog: Add 0.7.0 release notes. 2017-07-23 18:46:40 +01:00
Astro
a204e66709 echo_component: TODO 2017-07-23 02:47:07 +02:00
Astro
993fdcab8f unify Client::Event and Component::Event into Event 2017-07-23 02:46:47 +02:00
Emmanuel Gil Peyrot
c0f3fc4afb lib: add a component connection method 2017-07-23 02:09:52 +02:00
Astro
430cd4b44d README: TODO 2017-07-23 02:04:46 +02:00
Emmanuel Gil Peyrot
4454da15b6 disco: Implement disco#items. 2017-07-21 17:33:58 +01:00
Emmanuel Gil Peyrot
3b6733f38b Upgrade to minidom 0.4.4 to avoid having to redefine IntoElements for each Into<Element>. 2017-07-21 01:20:29 +01:00
Emmanuel Gil Peyrot
21cee25b27 Replace .and_then() with .map() wherever it makes sense. 2017-07-21 01:19:34 +01:00