update dependencies
This commit is contained in:
parent
6ac5bb99db
commit
772c6b56ee
4 changed files with 10 additions and 7 deletions
|
|
@ -10,14 +10,15 @@ tokio-io = "*"
|
||||||
bytes = "0.4.4"
|
bytes = "0.4.4"
|
||||||
xml5ever = "*"
|
xml5ever = "*"
|
||||||
tendril = "*"
|
tendril = "*"
|
||||||
minidom = "0.6.1"
|
minidom = "0.8.0"
|
||||||
native-tls = "*"
|
native-tls = "*"
|
||||||
tokio-tls = "*"
|
tokio-tls = "*"
|
||||||
sasl = "*"
|
sasl = "*"
|
||||||
rustc-serialize = "*"
|
rustc-serialize = "*"
|
||||||
jid = { version = "0.3.0", features = ["minidom"] }
|
jid = { version = "0.5.0", features = ["minidom"] }
|
||||||
domain = "0.2.1"
|
domain = "0.2.1"
|
||||||
xmpp-parsers = "0.8.0"
|
xmpp-parsers = "0.10.0"
|
||||||
idna = "*"
|
idna = "*"
|
||||||
try_from = "0.2.2"
|
try_from = "0.2.2"
|
||||||
sha-1 = "0.4.1"
|
sha-1 = "0.7.0"
|
||||||
|
quick-xml = "*"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ use std::mem::replace;
|
||||||
use futures::{Future, Poll, Async, sink, Sink, Stream};
|
use futures::{Future, Poll, Async, sink, Sink, Stream};
|
||||||
use tokio_io::{AsyncRead, AsyncWrite};
|
use tokio_io::{AsyncRead, AsyncWrite};
|
||||||
use minidom::Element;
|
use minidom::Element;
|
||||||
use sha_1::{Sha1, Digest};
|
use sha1::{Sha1, Digest};
|
||||||
|
|
||||||
use xmpp_codec::Packet;
|
use xmpp_codec::Packet;
|
||||||
use xmpp_stream::XMPPStream;
|
use xmpp_stream::XMPPStream;
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ extern crate tokio_io;
|
||||||
extern crate bytes;
|
extern crate bytes;
|
||||||
extern crate xml5ever;
|
extern crate xml5ever;
|
||||||
extern crate tendril;
|
extern crate tendril;
|
||||||
|
extern crate quick_xml;
|
||||||
extern crate minidom;
|
extern crate minidom;
|
||||||
extern crate native_tls;
|
extern crate native_tls;
|
||||||
extern crate tokio_tls;
|
extern crate tokio_tls;
|
||||||
|
|
@ -12,7 +13,7 @@ extern crate rustc_serialize as serialize;
|
||||||
extern crate jid;
|
extern crate jid;
|
||||||
extern crate domain;
|
extern crate domain;
|
||||||
extern crate idna;
|
extern crate idna;
|
||||||
extern crate sha_1;
|
extern crate sha1;
|
||||||
|
|
||||||
pub mod xmpp_codec;
|
pub mod xmpp_codec;
|
||||||
pub mod xmpp_stream;
|
pub mod xmpp_stream;
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ use minidom::Element;
|
||||||
use xml5ever::tokenizer::{XmlTokenizer, TokenSink, Token, Tag, TagKind};
|
use xml5ever::tokenizer::{XmlTokenizer, TokenSink, Token, Tag, TagKind};
|
||||||
use xml5ever::interface::Attribute;
|
use xml5ever::interface::Attribute;
|
||||||
use bytes::{BytesMut, BufMut};
|
use bytes::{BytesMut, BufMut};
|
||||||
|
use quick_xml::writer::Writer as EventWriter;
|
||||||
|
|
||||||
// const NS_XMLNS: &'static str = "http://www.w3.org/2000/xmlns/";
|
// 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))
|
.map_err(|e| Error::new(ErrorKind::InvalidInput, e))
|
||||||
},
|
},
|
||||||
Packet::Stanza(stanza) => {
|
Packet::Stanza(stanza) => {
|
||||||
stanza.write_to_inner(&mut WriteBytes::new(dst))
|
stanza.write_to_inner(&mut EventWriter::new(WriteBytes::new(dst)))
|
||||||
.and_then(|_| {
|
.and_then(|_| {
|
||||||
println!(">> {:?}", dst);
|
println!(">> {:?}", dst);
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue