From 772c6b56ee4e487b8f162f0f80e735a27dce4df2 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 22 Feb 2018 20:05:41 +0100 Subject: [PATCH] update dependencies --- Cargo.toml | 9 +++++---- src/component/auth.rs | 2 +- src/lib.rs | 3 ++- src/xmpp_codec.rs | 3 ++- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e8386b5..b664112 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,14 +10,15 @@ tokio-io = "*" bytes = "0.4.4" xml5ever = "*" tendril = "*" -minidom = "0.6.1" +minidom = "0.8.0" native-tls = "*" tokio-tls = "*" sasl = "*" rustc-serialize = "*" -jid = { version = "0.3.0", features = ["minidom"] } +jid = { version = "0.5.0", features = ["minidom"] } domain = "0.2.1" -xmpp-parsers = "0.8.0" +xmpp-parsers = "0.10.0" idna = "*" try_from = "0.2.2" -sha-1 = "0.4.1" +sha-1 = "0.7.0" +quick-xml = "*" diff --git a/src/component/auth.rs b/src/component/auth.rs index 729fd3c..bd1c9aa 100644 --- a/src/component/auth.rs +++ b/src/component/auth.rs @@ -2,7 +2,7 @@ use std::mem::replace; use futures::{Future, Poll, Async, sink, Sink, Stream}; use tokio_io::{AsyncRead, AsyncWrite}; use minidom::Element; -use sha_1::{Sha1, Digest}; +use sha1::{Sha1, Digest}; use xmpp_codec::Packet; use xmpp_stream::XMPPStream; diff --git a/src/lib.rs b/src/lib.rs index ddb4f9a..9401cc4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,6 +4,7 @@ extern crate tokio_io; extern crate bytes; extern crate xml5ever; extern crate tendril; +extern crate quick_xml; extern crate minidom; extern crate native_tls; extern crate tokio_tls; @@ -12,7 +13,7 @@ extern crate rustc_serialize as serialize; extern crate jid; extern crate domain; extern crate idna; -extern crate sha_1; +extern crate sha1; pub mod xmpp_codec; pub mod xmpp_stream; diff --git a/src/xmpp_codec.rs b/src/xmpp_codec.rs index 5e340a9..97fe2a8 100644 --- a/src/xmpp_codec.rs +++ b/src/xmpp_codec.rs @@ -13,6 +13,7 @@ use minidom::Element; use xml5ever::tokenizer::{XmlTokenizer, TokenSink, Token, Tag, TagKind}; use xml5ever::interface::Attribute; use bytes::{BytesMut, BufMut}; +use quick_xml::writer::Writer as EventWriter; // const NS_XMLNS: &'static str = "http://www.w3.org/2000/xmlns/"; @@ -278,7 +279,7 @@ impl Encoder for XMPPCodec { .map_err(|e| Error::new(ErrorKind::InvalidInput, e)) }, Packet::Stanza(stanza) => { - stanza.write_to_inner(&mut WriteBytes::new(dst)) + stanza.write_to_inner(&mut EventWriter::new(WriteBytes::new(dst))) .and_then(|_| { println!(">> {:?}", dst); Ok(())