mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
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"
|
||||
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 = "*"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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(())
|
||||
|
|
Loading…
Reference in a new issue