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
161e5dcc9b
jingle: Type Content::name better.
2017-07-15 11:37:29 +01:00
Emmanuel Gil Peyrot
a219501fed
jingle, jingle_ft: Use the new generate_id! macro to simplify Sid/Cid generation.
2017-06-25 22:14:51 +01:00
Emmanuel Gil Peyrot
e7f0c45da5
jingle: Fix sid test.
2017-06-14 09:19:06 +01:00
Emmanuel Gil Peyrot
48d340120c
jingle: Specialise Sid to get an increased type safety.
2017-06-14 02:28:42 +01:00
Emmanuel Gil Peyrot
393402032c
jingle: Add a comment.
2017-06-14 00:59:37 +01:00
Emmanuel Gil Peyrot
ebc7582250
Move the Default implementation into more generate_attribute!.
2017-06-14 00:53:18 +01:00
Emmanuel Gil Peyrot
0f297d2d2d
Add a generate_attribute! macro, and use it for the common case.
2017-06-14 00:50:57 +01:00
Emmanuel Gil Peyrot
764a7190e9
stanza_error: Simplify with IntoElements.
2017-05-25 01:14:36 +01:00
Emmanuel Gil Peyrot
17d6959606
jingle: Remove unused clones.
2017-05-24 23:38:44 +01:00
Emmanuel Gil Peyrot
00f3f3eee6
jingle: Simplify parsing and serialisation.
2017-05-24 22:28:54 +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
f99c667eab
jingle: Make description and transport optional in content.
2017-05-06 14:58:18 +01:00
Emmanuel Gil Peyrot
6c4fd8da01
jingle: Update to Into and TryFrom.
2017-05-04 01:20:28 +01:00
Emmanuel Gil Peyrot
4b90c1dc1f
data_forms, disco, jingle, jingle_ft: Remove superfluous “extern crate”.
2017-04-29 22:10:38 +01:00
Emmanuel Gil Peyrot
407e4cceb4
License the project under MPL-2.0.
2017-04-29 22:14:34 +01:00
Emmanuel Gil Peyrot
4fb4727357
jingle: Remove extraneous println!.
2017-04-28 23:45:43 +01:00
Emmanuel Gil Peyrot
10a336f874
jingle: Accept any unknown child, as per the specification.
2017-04-28 23:45:27 +01:00
Emmanuel Gil Peyrot
c20d37a842
jingle: Add serialisation for <reason/>.
2017-04-28 23:45:02 +01:00
Emmanuel Gil Peyrot
db1a87e2ee
jingle: Implement serialise.
2017-04-24 19:25:00 +01:00
Emmanuel Gil Peyrot
fa10ab4ebc
jingle: Implement From for String on all special attributes.
2017-04-24 19:25:00 +01:00
Emmanuel Gil Peyrot
90db24eed8
jingle: Simplify the FromStr using match.
2017-04-23 03:41:26 +01:00
Emmanuel Gil Peyrot
24d563ff18
jingle: Carry the minidom Element for description, transport and security.
2017-04-22 19:30:17 +01:00
Emmanuel Gil Peyrot
0778ceea7d
jingle: Remove extraneous println!().
2017-04-22 17:38:19 +01:00
Emmanuel Gil Peyrot
3209b04a50
Fix all warnings issued by cargo clippy
.
2017-04-21 01:28:58 +01:00
Emmanuel Gil Peyrot
62d9385728
Make all parsed types implement Clone.
2017-04-21 00:41:15 +01:00
Emmanuel Gil Peyrot
7288c2c74f
Import ns itself, and remove the _NS suffix on all namespaces.
2017-04-20 23:16:12 +01:00
Emmanuel Gil Peyrot
b8b0494c19
Fix a stupid copy/paste syntax error.
2017-04-20 00:14:29 +01:00
Emmanuel Gil Peyrot
fc7a0517d3
Replace assert!()s with proper errors in parsers.
2017-04-19 23:41:54 +01:00
Emmanuel Gil Peyrot
9d129701d0
jingle: Add an error when there is more than one <text/> in a <reason/>.
2017-04-19 02:38:10 +01:00
Emmanuel Gil Peyrot
9da488f909
Add a Jingle parser.
2017-04-19 02:27:42 +01:00