summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-10-20 04:51:56 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2023-10-20 04:51:56 +0100
commitba94ee66fafbabd63d6d1ed5edf435d4c46c6796 (patch)
treefe1bebc35914941b5c4fbd6f0286f4c9f8916154 /src/lib.rs
parent2536fa4937f0283b4187142cc6cede8e1dbfafa8 (diff)
downloadluz-ba94ee66fafbabd63d6d1ed5edf435d4c46c6796.tar.gz
luz-ba94ee66fafbabd63d6d1ed5edf435d4c46c6796.tar.bz2
luz-ba94ee66fafbabd63d6d1ed5edf435d4c46c6796.zip
WIP: refactor to parse incoming stream as state machine
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8162ccc..86da83d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -8,7 +8,7 @@ pub mod jabber;
pub mod jid;
pub mod stanza;
-pub use client::encrypted::JabberClient;
+// pub use client::encrypted::JabberClient;
pub use error::JabberError;
pub use jabber::Jabber;
pub use jid::JID;
@@ -22,30 +22,9 @@ mod tests {
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())
- // .unwrap()
- // .connect()
- // .await
- // .unwrap()
- // .ensure_tls()
- // .await
- // .unwrap()
- // .start_stream()
- // .await
- // .unwrap();
- // }
-
#[tokio::test]
async fn login() {
- Jabber::new(
+ Jabber::user(
JID::from_str("test@blos.sm/clown").unwrap(),
"slayed".to_owned(),
)