Commit graph

1464 commits

Author SHA1 Message Date
Emmanuel Gil Peyrot
429abb996d ecaps2: Implement serialise. 2017-04-23 18:36:37 +01:00
Emmanuel Gil Peyrot
20949c2832 hashes: Implement serialise. 2017-04-23 18:36:12 +01:00
Emmanuel Gil Peyrot
78e8a06ec2 Add a presence parser. 2017-04-23 17:30:23 +01:00
Emmanuel Gil Peyrot
6a56918484 ns: Add the namespaces of hashes functions we implement. 2017-04-23 17:30:07 +01:00
Emmanuel Gil Peyrot
5e802b457e Cargo.toml: Update the jid crate to 0.2.0, which implements From<JID> on String. 2017-04-23 16:30:41 +01:00
lumi
90c4aec54f Bump the version number up to 0.2.0. 2017-04-23 17:23:09 +02:00
lumi
bbde01160a Add a note about not supporting RFC7622 yet. 2017-04-23 17:20:50 +02:00
lumi
1f592e101a Merge branch 'from-str' into 'master'
implement From<Jid> on String

See merge request !1
2017-04-23 15:09:48 +00:00
Emmanuel Gil Peyrot
c81509744f lib, message, jingle_ft: Remove unused imports. 2017-04-23 15:32:38 +01:00
Emmanuel Gil Peyrot
5e7ad720c3 Add a message parser, along with a dependency on jid. 2017-04-23 15:13:03 +01:00
Emmanuel Gil Peyrot
0d2fda8064 implement From<Jid> on String 2017-04-23 14:49:00 +01:00
Emmanuel Gil Peyrot
15634b6500 ping: Remove extraneous brackets. 2017-04-23 03:45:14 +01:00
Emmanuel Gil Peyrot
16a6ebd751 ibb: Simplify the FromStr using match. 2017-04-23 03:44:58 +01:00
Emmanuel Gil Peyrot
659eaee14e data_forms: Simplify the FromStr using match. 2017-04-23 03:42:50 +01:00
Emmanuel Gil Peyrot
90db24eed8 jingle: Simplify the FromStr using match. 2017-04-23 03:41:26 +01:00
Emmanuel Gil Peyrot
7e964b167a message_correct: Add a serialise function, and simplify the representation. 2017-04-23 03:23:13 +01:00
Emmanuel Gil Peyrot
4128c4b9ed chatstates: Add a serialise function. 2017-04-23 03:22:42 +01:00
Emmanuel Gil Peyrot
7002578bc0 body: Test the serialise function. 2017-04-23 03:22:25 +01:00
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