#![allow(unused_must_use)] // TODO: logging (dropped errors) pub mod client; pub mod error; pub mod jabber; pub mod jid; pub mod stanza; pub use client::encrypted::JabberClient; pub use error::JabberError; pub use jabber::Jabber; pub use jid::JID; pub type Result = std::result::Result; #[cfg(test)] mod tests { use std::str::FromStr; use crate::Jabber; use crate::JID; // #[tokio::test] // async fn get_sockets() { // let jabber = Jabber::new(JID::from_str("cel@blos.sm").unwrap(), "password".to_owned()); // println!("{:?}", jabber.get_sockets().await) // } #[tokio::test] async fn connect() { Jabber::new(JID::from_str("cel@blos.sm").unwrap(), "password".to_owned()) .connect() .await .unwrap() .ensure_tls() .await .unwrap() .start_stream() .await .unwrap(); } }