tokio-xmpp: Import Jid, BareJid and Element properly

xmpp-parsers has stopped reexporting them, instead it reexports only the
crates themselves.
This commit is contained in:
Emmanuel Gil Peyrot 2024-07-24 20:39:27 +02:00 committed by Jonas Schäfer
commit e9b226e1ae
21 changed files with 34 additions and 22 deletions

View file

@ -1,4 +1,5 @@
use futures::stream::StreamExt;
use minidom::Element;
use std::env::args;
use std::process::exit;
use std::str::FromStr;
@ -6,9 +7,9 @@ use tokio_xmpp::AsyncClient as Client;
use xmpp_parsers::{
disco::{DiscoInfoQuery, DiscoInfoResult},
iq::{Iq, IqType},
jid::{BareJid, Jid},
ns,
server_info::ServerInfo,
BareJid, Element, Jid,
};
#[tokio::main]

View file

@ -1,4 +1,5 @@
use futures::stream::StreamExt;
use minidom::Element;
use std::env::args;
use std::fs::{create_dir_all, File};
use std::io::{self, Write};
@ -11,6 +12,7 @@ use xmpp_parsers::{
disco::{DiscoInfoQuery, DiscoInfoResult, Feature, Identity},
hashes::Algo,
iq::{Iq, IqType},
jid::{BareJid, Jid},
message::Message,
ns,
presence::{Presence, Type as PresenceType},
@ -20,7 +22,6 @@ use xmpp_parsers::{
NodeName,
},
stanza_error::{DefinedCondition, ErrorType, StanzaError},
BareJid, Element, Jid,
};
#[tokio::main]

View file

@ -1,11 +1,12 @@
use futures::stream::StreamExt;
use minidom::Element;
use std::env::args;
use std::process::exit;
use std::str::FromStr;
use tokio_xmpp::AsyncClient as Client;
use xmpp_parsers::jid::{BareJid, Jid};
use xmpp_parsers::message::{Body, Message, MessageType};
use xmpp_parsers::presence::{Presence, Show as PresenceShow, Type as PresenceType};
use xmpp_parsers::{BareJid, Element, Jid};
#[tokio::main]
async fn main() {

View file

@ -1,11 +1,12 @@
use futures::stream::StreamExt;
use minidom::Element;
use std::env::args;
use std::process::exit;
use std::str::FromStr;
use tokio_xmpp::tcp::TcpComponent as Component;
use xmpp_parsers::jid::Jid;
use xmpp_parsers::message::{Body, Message, MessageType};
use xmpp_parsers::presence::{Presence, Show as PresenceShow, Type as PresenceType};
use xmpp_parsers::{Element, Jid};
#[tokio::main]
async fn main() {

View file

@ -3,8 +3,8 @@ use std::io::{stdin, Read};
use std::process::exit;
use std::str::FromStr;
use tokio_xmpp::SimpleClient as Client;
use xmpp_parsers::jid::Jid;
use xmpp_parsers::message::{Body, Message};
use xmpp_parsers::Jid;
#[tokio::main]
async fn main() {