xmpp: Update to tokio-xmpp 3.4

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-08-17 16:17:53 +02:00
parent 68a8c043a2
commit 21c9fa2df4
5 changed files with 7 additions and 8 deletions

View file

@ -14,8 +14,7 @@ license = "MPL-2.0"
edition = "2018"
[dependencies]
tokio-xmpp = "3.2"
xmpp-parsers = "0.19"
tokio-xmpp = "3.4"
futures = "0.3"
tokio = { version = "1", features = ["fs"] }
log = "0.4"

View file

@ -7,8 +7,8 @@
use env_logger;
use std::env::args;
use std::str::FromStr;
use tokio_xmpp::parsers::{message::MessageType, BareJid, Jid};
use xmpp::{ClientBuilder, ClientFeature, ClientType, Event};
use xmpp_parsers::{message::MessageType, BareJid, Jid};
#[tokio::main]
async fn main() -> Result<(), Option<()>> {

View file

@ -15,8 +15,7 @@ use std::path::{Path, PathBuf};
use std::sync::{Arc, RwLock};
use tokio::fs::File;
use tokio_util::codec::{BytesCodec, FramedRead};
use tokio_xmpp::{AsyncClient as TokioXmppClient, Event as TokioXmppEvent};
use xmpp_parsers::{
use tokio_xmpp::parsers::{
bookmarks2::Conference,
caps::{compute_disco, hash_caps, Caps},
disco::{DiscoInfoQuery, DiscoInfoResult, Feature, Identity},
@ -33,8 +32,9 @@ use xmpp_parsers::{
pubsub::pubsub::{Items, PubSub},
roster::{Item as RosterItem, Roster},
stanza_error::{DefinedCondition, ErrorType, StanzaError},
BareJid, Element, Jid,
};
use tokio_xmpp::{AsyncClient as TokioXmppClient, Event as TokioXmppEvent};
use tokio_xmpp::{BareJid, Element, Jid};
#[macro_use]
extern crate log;

View file

@ -9,7 +9,7 @@ use crate::Event;
use std::convert::TryFrom;
use std::fs::{self, File};
use std::io::{self, Write};
use xmpp_parsers::{
use tokio_xmpp::parsers::{
avatar::{Data, Metadata},
iq::Iq,
ns,

View file

@ -8,7 +8,7 @@ use super::Agent;
use crate::Event;
use std::convert::TryFrom;
use std::str::FromStr;
use xmpp_parsers::{
use tokio_xmpp::parsers::{
bookmarks2::{Autojoin, Conference},
ns,
pubsub::event::PubSubEvent,