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:
|
||||
* Changes
|
||||
* 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:
|
||||
* Breaking
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ edition = "2021"
|
|||
gitlab = { repository = "xmpp-rs/xmpp-rs" }
|
||||
|
||||
[dependencies]
|
||||
rxml = { version = "0.12.0", default-features = false, features = ["compact_str"] }
|
||||
rxml = { version = "0.13.1", default-features = false, features = ["compact_str"] }
|
||||
|
||||
[features]
|
||||
default = [ "std" ]
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ use alloc::format;
|
|||
use alloc::string::String;
|
||||
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 {
|
||||
let mut root = Element::builder("root", "root_ns")
|
||||
|
|
@ -251,7 +251,7 @@ fn writer_escapes_attributes() {
|
|||
}
|
||||
assert_eq!(
|
||||
String::from_utf8(writer).unwrap(),
|
||||
r#"<root xmlns='ns1' a=""Air" quotes"/>"#
|
||||
r#"<root xmlns='ns1' a='"Air" quotes'/>"#
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue