Astro
7f25b4ef56
tokio-xmpp: update for futures-0.3 (100% API breakage)
2020-03-08 20:39:35 +01:00
Astro
23cb34e026
tokio-xmpp: rewrite for futures-0.3
2020-03-06 18:01:31 +01:00
Astro
bded964c38
tokio-xmpp: update dependency xml5ever
2020-03-01 00:40:45 +01:00
Emmanuel Gil Peyrot
04df9fde63
xmpp-parsers: Bump base64 to 0.11.
2020-02-28 01:28:57 +01:00
Emmanuel Gil Peyrot
944c4a0815
minidom: quick-xml::Error now implements Error without failure, so use it
...
Thanks pep.!
2020-02-28 01:28:54 +01:00
280ce6c458
Readd global LICENSE file
...
Remove in 9c1654f59b
by mistake.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-02-25 22:13:34 +01:00
89d92ced73
parsers: 0.17.0 release
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-02-15 02:27:26 +01:00
c5a813f6c5
jid: 0.9.0 release
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-02-15 02:27:26 +01:00
18d66edfe0
jid: Update Changelog
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-02-15 02:27:26 +01:00
043a0f257b
parsers: Update Changelog
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-02-15 01:50:09 +01:00
9c1654f59b
parsers: remove trailing whitespace
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-02-15 01:48:52 +01:00
6ee750ba11
minidom: 0.12.0 release
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-02-15 01:05:56 +01:00
3e7179c12f
minidom: clarify/update changelog
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-02-15 00:52:26 +01:00
9511247d2f
minidom: add license headers
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-02-15 00:52:26 +01:00
6c3332bc2f
Add LICENSE file (MPL2) as all projects have the same
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-02-14 23:25:06 +01:00
676f861f72
minidom: Change license to MPL2. Closes #21
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-02-14 23:25:06 +01:00
c8538c18f5
minidom: Make explicit the focus on XMPP
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-02-14 23:12:02 +01:00
44eaa5a6ea
tokio-xmpp: Prevent XmppCodec from producing invalid stanza
...
This bug was introduced by 2e97f4de2e
, to
fix another bug where the parser would choke on whitespace.
The bug would manifest whenever a stanza was sent in different parts,
for example:
<< "<message "
<< "type='chat><body>foo</body></message>"
Would produce the following once parsed:
`<messagetype='chat'><body>foo</body></messagetype='chat'>`
This commit ensures this doesn't happen anymore (by not trimming
whitespaces before feeding the parser), and also ensures that
whitespaces are now handled at the correct layer.
The removal of xmpp_codec::test_lone_whitespace only happens because I'm
not sure if it's supposed to be here anymore. Maybe it should be at a
different layer? Or written differently?
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-01-22 01:25:15 +01:00
0377b5658a
parsers: Remove dead get_ns methods
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-01-22 00:50:56 +01:00
fbb0edd93b
parsers: cleanup warnings about errors and unused stuff
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-01-22 00:50:56 +01:00
Paul Fariello
c224133382
Add test for openpgp pubkey serialization
2020-01-21 17:23:08 +01:00
Paul Fariello
13afbfd099
Add test for jingle udp transport serialization
2020-01-21 16:59:22 +01:00
Paul Fariello
1432807f11
Add tests for cert management serialization
2020-01-21 16:53:56 +01:00
Paul Fariello
34a87e22a8
Fix fmt
2019-12-30 11:28:52 +01:00
Paul Fariello
8d246975d7
Add serialization test for sm failed element
2019-12-30 11:20:37 +01:00
Paul Fariello
6b14b593d3
Add serialization test for pubsub publish-options and options element
2019-12-30 11:20:37 +01:00
Paul Fariello
8010b5a1e5
Add serialization test for muc item element
2019-12-30 11:20:37 +01:00
Paul Fariello
02e3f93caa
fixup! Add more test on Optionnal, Required children serialization
2019-12-30 11:20:37 +01:00
Paul Fariello
ce49b918c6
Add serialization test for mam result and fin element
2019-12-30 11:20:37 +01:00
Paul Fariello
e66a21176a
Add serialization test for forwaded element
2019-12-30 11:20:37 +01:00
Paul Fariello
5da5795286
Add serialization test for carbons forwarded elemt
2019-12-30 11:20:37 +01:00
Paul Fariello
0d879eb231
Add more test on Optionnal, Required children serialization
2019-12-30 11:20:37 +01:00
db9f7a76be
tokio-xmpp: Add some ugly premature logging useful for debugging
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-09 03:46:03 +01:00
7c15653fac
CI: Remove cache
...
Gitlab.com's third-parti storage works half the time anyway, and it
takes 8min to build 3mn to get it back..
Maybe someday..
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-08 13:47:43 +00:00
c53f4efbc5
CI: Also include cargo files in cache
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-08 13:47:43 +00:00
c8206455f1
parsers: fix tests indentation with minidom PartialEq changes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-08 11:03:01 +00:00
e62e870ef0
minidom: strictly compare whitespace in Element's PartialEq impl
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-08 11:03:01 +00:00
c9e6e3d095
minidom: Handle Node::Comment in PartialEq
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-08 11:03:01 +00:00
fd2bd2468d
tokio-xmpp: changer .into_iter to .iter to avoid ambiguity
...
Follow compiler warnings. See
https://github.com/rust-lang/rust/issues/66145
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-07 23:43:54 +00:00
Emmanuel Gil Peyrot
658c30fba6
examples: Add blake2b and simplify names.
2019-12-01 17:16:46 +01:00
Emmanuel Gil Peyrot
0d01918713
examples: Remove all unwrap()s.
2019-12-01 17:02:11 +01:00
Emmanuel Gil Peyrot
0d58b56920
ecaps2: Use the Error type instead of () or String.
2019-12-01 17:00:20 +01:00
473aaa03ef
Merge branch 'fix-serialization' into 'master'
...
parsers: Fix serialization
See merge request xmpp-rs/xmpp-rs!42
2019-12-01 02:53:41 +00:00
3c92f849d3
pubsub: Add serialization test for configure element
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-01 03:16:24 +01:00
Paul Fariello
689b7cf836
Fix serialisation of Optional field
2019-12-01 03:16:24 +01:00
Paul Fariello
3a2027411e
mam: Fix test on serialisation
2019-12-01 03:16:24 +01:00
Paul Fariello
8d41959497
jingle: Add test on serialisation
2019-12-01 03:16:24 +01:00
1c5551a917
minidom: Implement PartialEq manually for Node and Element
...
Move the NamespaceAwareCompare implementation from xmpp-parsers as Node
and Element's PartialEq implementation. Thanks Astro!
It's a lot more useful in tests to use `assert_eq!` than `assert!`, so
we get both items compared (left and right) instead of a "it failed."
message.
This "breaks" comparison for these two structs in the sense that it is
not strict object comparison anymore but it ensures that namespaces are
all present in the compared objects.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-29 16:02:23 +01:00
ea6e7c24a3
Merge branch 'more-ns-choice' into 'master'
...
minidom: Use NSChoice in more places
See merge request xmpp-rs/xmpp-rs!40
2019-11-26 22:07:16 +00:00
Xidorn Quan
219b0bbe87
minidom: Use NSChoice in more places
2019-11-26 22:47:35 +11:00