aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/lib.rs b/src/lib.rs
deleted file mode 100644
index 43aa581..0000000
--- a/src/lib.rs
+++ /dev/null
@@ -1,36 +0,0 @@
-#![allow(unused_must_use)]
-// #![feature(let_chains)]
-
-// TODO: logging (dropped errors)
-pub mod client;
-pub mod connection;
-pub mod error;
-pub mod jabber_stream;
-pub mod jid;
-pub mod stanza;
-
-pub use connection::Connection;
-use connection::Tls;
-pub use error::Error;
-pub use jabber_stream::JabberStream;
-pub use jid::JID;
-
-pub type Result<T> = std::result::Result<T, Error>;
-
-pub async fn login<J: AsRef<str>, P: AsRef<str>>(jid: J, password: P) -> Result<JabberStream<Tls>> {
- todo!()
- // Ok(Connection::connect_user(jid, password.as_ref().to_string())
- // .await?
- // .ensure_tls()
- // .await?
- // .negotiate()
- // .await?)
-}
-
-#[cfg(test)]
-mod tests {
- // #[tokio::test]
- // async fn test_login() {
- // crate::login("test@blos.sm/clown", "slayed").await.unwrap();
- // }
-}