20b224855c
minidom: Remove NSChoice::None
...
Although it is still possible to create such elements, this is not a a
case that should happen in XMPP. Changing to API to prevent the creation
of these elements is next on the list.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-03-27 18:32:57 +00:00
5e7701f334
minidom: Remove remaining Comment bits in node
...
They were hidden behind the flag and not showing up in tests.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-03-26 23:21:50 +01:00
015d0007fc
minidom: Remove comments support. Forbid them as per XMPP RFC.
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-03-26 20:50:30 +01:00
Emmanuel Gil Peyrot
c154593fe5
Bump dependencies
2020-03-26 18:28:50 +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
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
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
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
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
Xidorn Quan
219b0bbe87
minidom: Use NSChoice in more places
2019-11-26 22:47:35 +11: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
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
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
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
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
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