Commit graph

1314 commits

Author SHA1 Message Date
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
c4c285d3d5 Merge branch 'mam-serialize' into 'master'
parsers/mam: add ignored failing test for serialization

See merge request xmpp-rs/xmpp-rs!38
2019-11-22 17:21:20 +00:00
f3a18711e6
parsers/mam: add ignored failing test for serialization
Add failing test for #20. Thanks Paul.
Now that needs fixing..

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-22 17:34:53 +01:00
141d11ad38
minidom: Don't prepend xml prelude in writer. Add new API
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-10 01:01:42 +01:00
8042d6ea23
minidom: Move compare_ns out of NamespaceSet into NSChoice
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-09 12:45:31 +01:00
28faee8408
minidom: rustfmt latest commit
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-09 01:33:46 +01:00
5a254bca1a
parsers/jingle: fixes struct size in tests
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-09 01:32:11 +01:00
70f3ef5523
parsers: Use new NSChoice API from minidom. Fixes tests
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-09 01:31:36 +01:00
362ceae922
minidom: Add NSChoice enum to extent element.is and .has_ns API
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-09 01:26:48 +01:00
276dc4fcb2
minidom: Fix code style
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-06 03:51:58 +01:00
Emmanuel Gil Peyrot
877d5c21da minidom: Add a blanket impl for From<Into<Element>> for Node. 2019-11-03 18:49:11 +01:00
a1489a6428
xmpp-rs: Use to_hex conversion from struct directly
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-23 15:03:30 +02:00
6d1d441372 Check with nightly image; remove zsh-ism
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-23 02:31:14 +02:00
a104ebc3f6
Rustfmt pass, and rustfmt --check in CI"
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-23 01:36:02 +02:00
e1b53eae3c Remove unused .gitlab-ci.yml files
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-23 01:02:11 +02:00
ae764477c7 Use ref to avoid 'cannot bind by-mode pattern'
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-23 01:02:11 +02:00
a55d420979
Temporarily remove features
It's not possible to use them at the top of the workspace.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-23 00:29:28 +02:00
a3922138a3
xmpp-rs: Test that client builds correctly
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-22 23:46:50 +02:00
721897f49b
xmpp-rs: declare avatars feature and set as default
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-20 21:16:17 +02:00
2dd116c0e8
Update repo and homepage in Cargo.toml files
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-20 01:04:22 +02:00
d54471055a
Remove .hgignore artifacts from xmpp-parsers
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-20 00:28:38 +02:00
e43336fbdf Merge branch 'merge-repos' into 'master'
Merge repos

Closes #2, #3, #1, #4, #7, #15, tokio-webhook2muc#2, #11, and #18

See merge request xmpp-rs/xmpp-rs!36
2019-10-19 22:22:27 +00:00
a8c33fe911
Update TokioXmppEvent::Online handler with update jid arg
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-19 17:59:24 +02:00
fa118433df
Create Cargo.toml workspace file. Add patch directives to override path
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-19 17:57:43 +02:00
0970e7b484 Merge minidom-rs project 2019-10-18 14:28:23 +02:00
57b2c6a135
Prepare for merge: Move all minidom-rs files into minidom-rs/
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-18 14:27:53 +02:00
d9d676a0cb Merge jid-rs project 2019-10-18 14:23:27 +02:00
5a6a1d7c97
Prepare for merge: Move all jid-rs files into jid-rs/
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-18 14:23:21 +02:00
ce6b1d28ee Merge tokio-xmpp project 2019-10-18 14:16:58 +02:00
34aa710366
Prepare for merge: Move all tokio-xmpp files into tokio-xmpp/
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-18 14:16:01 +02:00
57d6c9fc75 Merge xmpp-parsers project 2019-10-18 13:51:22 +02:00
dc76f296de
Prepare for merge: Move all xmpp-parsers files into xmpp-parsers/
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-18 13:47:10 +02:00
2fec9083a4
Prepare for merge: Move all xmpp-rs files into xmpp-rs/
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-18 13:46:58 +02:00
Emmanuel Gil Peyrot
8a13d7f010 jingle_ice_udp: Add methods to add a RTP candidate and set the DTLS-SRTP fingerprint. 2019-10-18 13:06:36 +02:00
Emmanuel Gil Peyrot
03e8ef7569 jingle: Expose Description the same way we expose Transport. 2019-10-18 13:06:08 +02:00
Emmanuel Gil Peyrot
7b536e5bfc macros: Implement Display for attributes. 2019-10-18 13:05:33 +02:00
Emmanuel Gil Peyrot
8c21efb2ac jingle_rtp: Use the correct element name for ssrc. 2019-10-18 13:05:14 +02:00
176166b60a
Ensure Jid is Hash-able
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-16 01:23:21 +02:00
1ee6609c97
Re-export quick_xml dependency
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-15 23:50:57 +02:00
1d5276ccbd
Update quick-xml dep to 0.17
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-15 23:50:35 +02:00
dfd28eaf40
Actually bump version to 0.16.0
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-15 23:18:08 +02:00