Bump rxml to 0.13.1
rxml 0.13.0 changed the quoting style to make it consistent, so we have to patch up all affected places where we match exact strings.
This commit is contained in:
parent
477af3c895
commit
70d635b0fb
8 changed files with 11 additions and 8 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
Version NEXT:
|
Version NEXT:
|
||||||
* Changes
|
* Changes
|
||||||
* Almost make the whole crate `no_std`, only `std::io` is still remaining.
|
* Almost make the whole crate `no_std`, only `std::io` is still remaining.
|
||||||
|
* Update rxml dependency to 0.13.
|
||||||
|
|
||||||
Version 0.16, released 2024-07-23:
|
Version 0.16, released 2024-07-23:
|
||||||
* Breaking
|
* Breaking
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ edition = "2021"
|
||||||
gitlab = { repository = "xmpp-rs/xmpp-rs" }
|
gitlab = { repository = "xmpp-rs/xmpp-rs" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rxml = { version = "0.12.0", default-features = false, features = ["compact_str"] }
|
rxml = { version = "0.13.1", default-features = false, features = ["compact_str"] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = [ "std" ]
|
default = [ "std" ]
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ use alloc::format;
|
||||||
use alloc::string::String;
|
use alloc::string::String;
|
||||||
use alloc::vec::Vec;
|
use alloc::vec::Vec;
|
||||||
|
|
||||||
const TEST_STRING: &'static [u8] = br#"<root xmlns='root_ns' a="b" xml:lang="en">meow<child c="d"/><child xmlns='child_ns' d="e" xml:lang="fr"/>nya</root>"#;
|
const TEST_STRING: &'static [u8] = br#"<root xmlns='root_ns' a='b' xml:lang='en'>meow<child c='d'/><child xmlns='child_ns' d='e' xml:lang='fr'/>nya</root>"#;
|
||||||
|
|
||||||
fn build_test_tree() -> Element {
|
fn build_test_tree() -> Element {
|
||||||
let mut root = Element::builder("root", "root_ns")
|
let mut root = Element::builder("root", "root_ns")
|
||||||
|
|
@ -251,7 +251,7 @@ fn writer_escapes_attributes() {
|
||||||
}
|
}
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
String::from_utf8(writer).unwrap(),
|
String::from_utf8(writer).unwrap(),
|
||||||
r#"<root xmlns='ns1' a=""Air" quotes"/>"#
|
r#"<root xmlns='ns1' a='"Air" quotes'/>"#
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -398,7 +398,7 @@ mod tests {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
r#"<validate xmlns='http://jabber.org/protocol/xdata-validate' datatype="xs:string"><basic/><list-range max="3" min="1"/></validate>"#,
|
r#"<validate xmlns='http://jabber.org/protocol/xdata-validate' datatype='xs:string'><basic/><list-range max='3' min='1'/></validate>"#,
|
||||||
Validate {
|
Validate {
|
||||||
datatype: Some(Datatype::String),
|
datatype: Some(Datatype::String),
|
||||||
method: Some(Method::Basic),
|
method: Some(Method::Basic),
|
||||||
|
|
@ -409,7 +409,7 @@ mod tests {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
r#"<validate xmlns='http://jabber.org/protocol/xdata-validate' datatype="xs:string"><regex>([0-9]{3})-([0-9]{2})-([0-9]{4})</regex></validate>"#,
|
r#"<validate xmlns='http://jabber.org/protocol/xdata-validate' datatype='xs:string'><regex>([0-9]{3})-([0-9]{2})-([0-9]{4})</regex></validate>"#,
|
||||||
Validate {
|
Validate {
|
||||||
datatype: Some(Datatype::String),
|
datatype: Some(Datatype::String),
|
||||||
method: Some(Method::Regex(
|
method: Some(Method::Regex(
|
||||||
|
|
@ -419,7 +419,7 @@ mod tests {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
r#"<validate xmlns='http://jabber.org/protocol/xdata-validate' datatype="xs:dateTime"><range max="2003-10-24T23:59:59-07:00" min="2003-10-05T00:00:00-07:00"/></validate>"#,
|
r#"<validate xmlns='http://jabber.org/protocol/xdata-validate' datatype='xs:dateTime'><range max='2003-10-24T23:59:59-07:00' min='2003-10-05T00:00:00-07:00'/></validate>"#,
|
||||||
Validate {
|
Validate {
|
||||||
datatype: Some(Datatype::DateTime),
|
datatype: Some(Datatype::DateTime),
|
||||||
method: Some(Method::Range {
|
method: Some(Method::Range {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ tokio = { version = "1", features = ["net", "rt", "rt-multi-thread", "macros"] }
|
||||||
tokio-stream = { version = "0.1", features = ["sync"] }
|
tokio-stream = { version = "0.1", features = ["sync"] }
|
||||||
webpki-roots = { version = "0.26", optional = true }
|
webpki-roots = { version = "0.26", optional = true }
|
||||||
rustls-native-certs = { version = "0.7", optional = true }
|
rustls-native-certs = { version = "0.7", optional = true }
|
||||||
rxml = { version = "0.12.0", features = ["compact_str"] }
|
rxml = { version = "0.13.1", features = ["compact_str"] }
|
||||||
rand = "0.8"
|
rand = "0.8"
|
||||||
syntect = { version = "5", optional = true }
|
syntect = { version = "5", optional = true }
|
||||||
pin-project-lite = { version = "0.2" }
|
pin-project-lite = { version = "0.2" }
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ XXXX-YY-ZZ RELEASER <admin@example.com>
|
||||||
delegate it to a hardware implementations if available. This depends
|
delegate it to a hardware implementations if available. This depends
|
||||||
on the `tls-rust-ktls` feature. (!458, !490)
|
on the `tls-rust-ktls` feature. (!458, !490)
|
||||||
- Building with insecure-tcp and no other feature got fixed.
|
- Building with insecure-tcp and no other feature got fixed.
|
||||||
|
- Update rxml dependency to 0.13.
|
||||||
|
|
||||||
Version 4.0.0:
|
Version 4.0.0:
|
||||||
2024-07-26 Maxime “pep” Buquet <pep@bouah.net>
|
2024-07-26 Maxime “pep” Buquet <pep@bouah.net>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ license = "MPL-2.0"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bytes = { version = "1" }
|
bytes = { version = "1" }
|
||||||
rxml = { version = "0.12.0", default-features = false }
|
rxml = { version = "0.13.1", default-features = false }
|
||||||
minidom = { version = "0.16", path = "../minidom" }
|
minidom = { version = "0.16", path = "../minidom" }
|
||||||
xso_proc = { version = "0.1", path = "../xso-proc", optional = true }
|
xso_proc = { version = "0.1", path = "../xso-proc", optional = true }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ Version NEXT:
|
||||||
- Fixed bug where putting an attribute field below any non-attribute
|
- Fixed bug where putting an attribute field below any non-attribute
|
||||||
field in a struct definition would cause a compile-time error when
|
field in a struct definition would cause a compile-time error when
|
||||||
deriving `AsXml`.
|
deriving `AsXml`.
|
||||||
|
- Update rxml dependency to 0.13.
|
||||||
|
|
||||||
Version 0.1.2:
|
Version 0.1.2:
|
||||||
2024-07-26 Jonas Schäfer <jonas@zombofant.net>
|
2024-07-26 Jonas Schäfer <jonas@zombofant.net>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue