Commit graph

143 commits

Author SHA1 Message Date
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
6ce9496fc3 CI: Add jobs for 'comments' feature
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-13 03:18:37 +02:00
7a0ba4f39d CI: Import .gitlab-ci.yml from xmpp-rs
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-13 03:18:37 +02:00
5aee776f66 Update to edition 2018
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-13 03:18:07 +02:00
Emmanuel Gil Peyrot
11a5c49470 Implement std::error::Error for Error.
This was removed in 0.11.1 with the removal of failure, but is used by
people so let’s reintroduce it.

The cause of an XmlError is pending on this PR from quick-xml:
https://github.com/tafia/quick-xml/pull/170

Fixes #15.
Fixes #18.
2019-09-07 16:04:13 +02:00
Emmanuel Gil Peyrot
0db94e554d Prepare for 0.11.1 release. 2019-09-06 11:33:32 +02:00
Emmanuel Gil Peyrot
17f902b503 Update to quick-xml 0.16. 2019-09-05 21:31:42 +02:00
6f79508b09 Merge branch 'no-failure' into 'master'
Remove failure

See merge request xmpp-rs/minidom-rs!38
2019-09-05 19:27:59 +00:00
Emmanuel Gil Peyrot
b4035d1227 Remove failure. 2019-09-05 20:15:20 +02:00
ea88adbafb Merge branch 'optional-comments' into 'master'
Make comments optional

See merge request xmpp-rs/minidom-rs!36
2019-08-22 16:18:07 +00:00
Emmanuel Gil Peyrot
a91252c861 Make comments optional.
Add a default "comments" feature to transform comments into errors when
unset.

This is so that XMPP implementations don’t have to care about comments,
as they can’t happen in the stream.
2019-08-22 18:11:22 +02:00
aa8018d999
Update to quick-xml 0.15
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-21 10:32:32 +02:00
1f96d82cb8
Remove trailing whitespace
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-27 13:14:37 +02:00
c5c330d77a
Prepare for 0.11.0 release
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-14 18:39:43 +02:00
019e700ab4
CHANGELOG: Add missing 0.10.0 entry
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-12 18:42:20 +02:00
769821141b
Update quick-xml dependency to 0.14
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-12 18:23:32 +02:00
aacfcc58b9
Change unnecessary mut variable to default immutable
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-06-12 18:22:51 +02:00
lumi
efb283f6fe Merge branch 'nicer-debug' into 'master'
Implement a nicer Debug for NamespaceSet

See merge request lumi/minidom-rs!33
2019-03-06 14:27:47 +00:00
Emmanuel Gil Peyrot
1496819546 Implement a nicer Debug for NamespaceSet
The existing one was quite hard to parse visually, this makes it a lot
easier to understand what is what.
2019-02-27 20:00:02 +01:00
lumi
823810e2e0 Merge branch 'master' into 'master'
Fix clippy lints

See merge request lumi/minidom-rs!32
2019-02-21 20:14:36 +00:00
Emmanuel Gil Peyrot
f68826057b Fix clippy lints 2019-02-21 21:06:23 +01:00
lumi
f0dd03d633 Split Node off into its own module: node.rs 2018-12-23 15:59:13 +01:00
lumi
c5c8dee20a Get rid of IntoElements, replace it with Into<Node> and <T: Into<Node> IntoIterator<Item = T>. This is a backwards-incompatible change, but should require minimal changes.
Doing this splits the `append` method in `ElementBuilder` into two methods. `append` now appends exactly one node, while `append_all` appends an iterator of nodes.

Add `remove_child`, which removes the first child that has a specific name and namespace, then returns it if it exists.

Add a lot of convenience methods on `Node`: `as_text_mut`, `as_element_mut`, `into_text`, `into_element`.
2018-12-23 15:42:50 +01:00
lumi
da7de97dce Merge branch 'bump' into 'master'
Update quick-xml and bump version

See merge request lumi/minidom-rs!31
2018-10-21 18:30:53 +00:00
Bastien Orivel
72c63920a8 Update quick-xml and bump version 2018-10-21 20:24:32 +02:00
lumi
0b9aa86072 Merge branch 'patch-1' into 'master'
Fix doc to reflect the switch from xml-rs to quick-xml.

See merge request lumi/minidom-rs!30
2018-07-02 22:06:33 +00:00
Valentin Lorentz
f1f5f5df11 Fix doc to reflect the switch from xml-rs to quick-xml. 2018-06-23 12:06:18 +00:00
lumi
fac64400f1 Put the tests in element.rs into a module block. 2018-05-29 16:22:22 +02:00
lumi
956dff3ad4 Merge branch 'net-ipaddr' into 'master'
Impl IntoAttributeValue for std::net::IpAddr

See merge request lumi/minidom-rs!29
2018-05-29 14:11:29 +00:00
Emmanuel Gil Peyrot
7ed4be96eb impl IntoAttributeValue for std::net::IpAddr 2018-05-29 16:03:44 +02:00
lumi
4f588f615d Fix CDATA handling, add relevant test, update CHANGELOG, bump version to 0.9.1. 2018-05-29 15:59:36 +02:00
lumi
1634c7dbe5 Merge branch 'upgrade_quick_xml_0.12.1' into 'master'
Upgrade quick-xml to 0.12.1

See merge request lumi/minidom-rs!28
2018-04-22 12:11:33 +00:00
Matt Bilker
96f223b7e3
bump version to 0.9.0 and upgrade quick-xml to 0.12.1 2018-04-10 21:01:18 -04:00
lumi
e4dfa218b6 update changelog 2018-02-18 21:50:32 +01:00
lumi
8924d2d594 Merge branch 'linkmauve/minidom-rs-failure'
# Conflicts:
#	src/tests.rs
2018-02-18 21:32:51 +01:00
lumi
c9983865eb Merge branch 'master' into 'master'
Support comment and write to quick-xml Writer

See merge request lumi/minidom-rs!26
2018-02-18 20:21:05 +00:00
Emmanuel Gil Peyrot
0eba989122 bump version to 0.8.0 and add CHANGELOG.md entry 2018-02-18 20:56:40 +01:00
Emmanuel Gil Peyrot
236582b24e update quick_xml and migrate from error-chain to failure 2018-02-18 20:45:09 +01:00
Emmanuel Gil Peyrot
055caa8e24 add tests for some XML errors 2018-02-18 19:41:03 +01:00
Yue Liu
f456600efd Support comment and write to quick-xml Writer 2018-01-09 23:29:48 -08:00
lumi
74fb62f953 Merge branch 'update-gitlab-ci' into 'master'
Update docker image used in CI

See merge request lumi/minidom-rs!25
2018-01-01 13:45:20 +00:00
Maxime “pep” Buquet
be3279a999 Update docker image used in CI 2018-01-01 13:39:32 +00:00
lumi
d079f0503a make sure that my tests actually work... 2018-01-01 14:34:24 +01:00
lumi
118bbb5462 add the spectest.xml from https://gitlab.com/lumi/minidom-rs/issues/8 2018-01-01 14:28:17 +01:00
lumi
cdb2cb8d86 try not to allocate memory when comparing ending tags with starting tags 2018-01-01 14:01:03 +01:00
lumi
0e76e5211d Merge branch 'compare-with-prefix' into 'master'
Compare with prefix

See merge request lumi/minidom-rs!23
2018-01-01 12:26:19 +00:00
lumi
309d84f2d0 Merge branch 'remove-wildcard-pattern' into 'master'
Be explicit about quick-xml Events we are handling

See merge request lumi/minidom-rs!24
2017-12-31 16:35:56 +00:00
Maxime “pep” Buquet
9959abbb25 Be explicit about quick-xml Events we are handling 2017-12-31 16:31:26 +00:00
Maxime “pep” Buquet
db70487a31 Change prefix fn to return Option<&str> 2017-12-31 15:24:28 +00:00