diff --git a/minidom/Cargo.toml b/minidom/Cargo.toml index b61523b5..5b74baa3 100644 --- a/minidom/Cargo.toml +++ b/minidom/Cargo.toml @@ -21,4 +21,4 @@ edition = "2018" gitlab = { repository = "xmpp-rs/xmpp-rs" } [dependencies] -rxml = "^0.8.0" +rxml = "0.9.1" diff --git a/minidom/src/tests.rs b/minidom/src/tests.rs index d209c0b4..160fdd30 100644 --- a/minidom/src/tests.rs +++ b/minidom/src/tests.rs @@ -452,3 +452,15 @@ fn missing_namespace_error() { err => panic!("No or wrong error: {:?}", err), } } + +#[test] +fn misserialisation() { + let xml = + "vp9"; + //let elem = xml.parse::().unwrap(); + let elem = Element::builder("jitsi_participant_codecType", "jabber:client") + .append("vp9") + .build(); + let data = String::from(&elem); + assert_eq!(xml, data); +} diff --git a/tokio-xmpp/Cargo.toml b/tokio-xmpp/Cargo.toml index 2f9b06fe..06eaedd7 100644 --- a/tokio-xmpp/Cargo.toml +++ b/tokio-xmpp/Cargo.toml @@ -27,7 +27,7 @@ trust-dns-proto = "0.22" trust-dns-resolver = "0.22" xmpp-parsers = "0.19" minidom = "0.15" -rxml = "^0.8.0" +rxml = "0.9.1" webpki-roots = { version = "0.22", optional = true } rand = "^0.8"