From e0373c0520e7fae792bc907e9c500ab846d34e31 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 3 Dec 2024 23:57:04 +0000 Subject: WIP: connecting fsm --- src/lib.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 681d1d0..9c8d968 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,7 @@ // #![feature(let_chains)] // TODO: logging (dropped errors) +pub mod client; pub mod connection; pub mod error; pub mod jabber; @@ -11,18 +12,19 @@ pub mod stanza; pub use connection::Connection; use connection::Tls; pub use error::Error; -pub use jabber::Jabber; +pub use jabber::JabberStream; pub use jid::JID; pub type Result = std::result::Result; -pub async fn login, P: AsRef>(jid: J, password: P) -> Result> { - Ok(Connection::connect_user(jid, password.as_ref().to_string()) - .await? - .ensure_tls() - .await? - .negotiate() - .await?) +pub async fn login, P: AsRef>(jid: J, password: P) -> Result> { + todo!() + // Ok(Connection::connect_user(jid, password.as_ref().to_string()) + // .await? + // .ensure_tls() + // .await? + // .negotiate() + // .await?) } #[cfg(test)] -- cgit