#![allow(unused_must_use)] // #![feature(let_chains)] // TODO: logging (dropped errors) pub mod connection; pub mod error; pub mod jabber; pub mod jid; pub mod stanza; #[macro_use] extern crate lazy_static; pub use connection::Connection; pub use error::JabberError; pub use jabber::Jabber; pub use jid::JID; pub type Result = std::result::Result; pub async fn login, P: AsRef>(jid: J, password: P) -> Result { todo!() } #[cfg(test)] mod tests { #[tokio::test] async fn test_login() { crate::login("test@blos.sm/clown", "slayed").await.unwrap(); } }