Commit graph

604 commits

Author SHA1 Message Date
Emmanuel Gil Peyrot
cebccb363f eme: Add a serialise function. 2017-04-23 03:22:02 +01:00
Emmanuel Gil Peyrot
c6036194b1 delay: Add a serialise function. 2017-04-23 03:21:53 +01:00
Emmanuel Gil Peyrot
ab841dc375 receipts: Add a serialise function. 2017-04-23 03:21:21 +01:00
Emmanuel Gil Peyrot
54f4040251 attention: Simplify the payload type, and add a serialise function. 2017-04-23 03:20:52 +01:00
Emmanuel Gil Peyrot
ca6e65ad76 body: Add a serialise function. 2017-04-23 02:24:13 +01:00
Emmanuel Gil Peyrot
6d6ac8a380 body: Simplify the type of Body to an alias of String. 2017-04-22 20:49:17 +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
ff5be32a0e Add a JingleIBB parser. 2017-04-22 19:15:48 +01:00
Emmanuel Gil Peyrot
22ec4b1913 ibb: Improve handling of optional stanza attribute. 2017-04-22 19:15:29 +01:00
Emmanuel Gil Peyrot
fbb609485b Add a JingleFT parser. 2017-04-22 17:39:21 +01:00
Emmanuel Gil Peyrot
000e5a50c2 error: Add ParseIntError to the possible errors. 2017-04-22 17:39:00 +01:00
Emmanuel Gil Peyrot
edc5961a79 hashes: Implement PartialEq on Hash. 2017-04-22 17:38:36 +01:00
Emmanuel Gil Peyrot
0778ceea7d jingle: Remove extraneous println!(). 2017-04-22 17:38:19 +01:00
Emmanuel Gil Peyrot
e1070a8b98 ecaps2: Add a parser too. 2017-04-22 16:51:10 +01:00
Emmanuel Gil Peyrot
ea2ff8a35d Add a hash parser. 2017-04-21 04:21:16 +01:00
Emmanuel Gil Peyrot
d39d13b7cb delay: Correctly parse the content data. 2017-04-21 04:01:14 +01:00
Emmanuel Gil Peyrot
cfadff3bc9 Add a Delayed Delivery parser. 2017-04-21 03:57:34 +01:00
Emmanuel Gil Peyrot
a680ab194c Add an Explicit Message Encryption parser. 2017-04-21 03:45:05 +01:00
Emmanuel Gil Peyrot
94380fdbd5 ibb: Add some more tests. 2017-04-21 03:21:06 +01:00
Emmanuel Gil Peyrot
189f17c569 ibb: Add a parser for the <close/> element. 2017-04-21 03:09:10 +01:00
Emmanuel Gil Peyrot
fb373c2b66 ibb: Add a parser for the <data/> element. 2017-04-21 03:07:21 +01:00
Emmanuel Gil Peyrot
6ba22a43e5 lib: Import base64 at the top-level, and not in a module. 2017-04-21 02:46:41 +01:00
Emmanuel Gil Peyrot
8fba5cf966 Add a Last Message Correction parser. 2017-04-21 02:07:44 +01:00
Emmanuel Gil Peyrot
9410b9682a lib: Export attention as a MessagePayload. 2017-04-21 01:56:18 +01:00
Emmanuel Gil Peyrot
458099cef0 Add an attention parser. 2017-04-21 01:53:47 +01:00
Emmanuel Gil Peyrot
6600418070 ecaps2: Remove function convert_element, used only in the tests. 2017-04-21 01:39:32 +01:00
Emmanuel Gil Peyrot
79c691e1c0 ecaps2: Add a TODO about changing algo into an enum. 2017-04-21 01:30:29 +01:00
Emmanuel Gil Peyrot
3209b04a50 Fix all warnings issued by cargo clippy. 2017-04-21 01:28:58 +01:00
Emmanuel Gil Peyrot
0da3d55e40 First attempt at a documentation. 2017-04-21 01:06:30 +01:00
Emmanuel Gil Peyrot
62d9385728 Make all parsed types implement Clone. 2017-04-21 00:41:15 +01:00
Emmanuel Gil Peyrot
88ae9aca3f ecaps2: Remove unused brackets around Blake2b. 2017-04-21 00:24:20 +01:00
Emmanuel Gil Peyrot
efedb215c4 ecaps2: Add Rust-Crypto and base64 dependencies, and implement hashing. 2017-04-21 00:01:57 +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
411e421732 ecaps2: Use a reference everywhere, instead of taking ownership. 2017-04-20 21:53:46 +01:00
Emmanuel Gil Peyrot
83cf57abd0 disco: Use a reference everywhere, instead of taking ownership. 2017-04-20 21:53:46 +01:00
Emmanuel Gil Peyrot
1190dd9001 disco: Add a serializer. 2017-04-20 21:03:02 +01:00
Emmanuel Gil Peyrot
e0e6119e55 disco: Relax the parsing rules for get disco#info. 2017-04-20 21:02:51 +01:00
Emmanuel Gil Peyrot
55f5435f6e body: Make the string public. 2017-04-20 01:31:03 +01:00
Emmanuel Gil Peyrot
f3c9a58862 Add a receipts parser. 2017-04-20 00:43:33 +01:00
Emmanuel Gil Peyrot
861c933c56 body, chatstates: Fix tests. 2017-04-20 00:43:17 +01:00
Emmanuel Gil Peyrot
a9993b1281 Remove the MessagePayload trait, it was a bad idea. 2017-04-20 00:14:47 +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
6a0724d133 Add a MessagePayload trait, and implement it for Body and ChatState. 2017-04-19 23:21:53 +01:00
Emmanuel Gil Peyrot
948ecd7dd7 Add a body plugin. 2017-04-19 23:21:23 +01:00
Emmanuel Gil Peyrot
4f31727a1a Add an In-Band Bytestream parser. 2017-04-19 21:52:14 +01:00
Emmanuel Gil Peyrot
31a7d8be23 disco: Drop some unneeded derived traits from Feature. 2017-04-19 21:50:14 +01:00
Emmanuel Gil Peyrot
69f1405b9c Add a chatstate parser. 2017-04-19 19:15:57 +01:00
Emmanuel Gil Peyrot
fdc76eca3c Add a ping parser. 2017-04-19 18:59:07 +01:00
Emmanuel Gil Peyrot
87cd047a46 media_element: Import the namespace from ns. 2017-04-19 18:58:43 +01:00