joecalsend/src/main.rs

17 lines
407 B
Rust
Raw Normal View History

2025-07-04 22:15:52 +00:00
use joecalsend::{Client, models::device::DeviceInfo};
use tokio::io;
2025-07-04 00:00:11 +00:00
#[tokio::main]
2025-07-04 22:15:52 +00:00
async fn main() -> io::Result<()> {
2025-07-04 00:00:11 +00:00
let device = DeviceInfo::default();
2025-07-04 22:15:52 +00:00
dbg!(&device);
2025-07-04 00:00:11 +00:00
2025-07-04 22:15:52 +00:00
let client = Client::with_config(device, 53317, "/home/ardent/joecalsend".into())
.await
.unwrap();
2025-07-04 00:00:11 +00:00
let (h1, h2, h3) = client.start().await.unwrap();
2025-07-04 22:15:52 +00:00
let _ = tokio::join!(h1, h2, h3);
Ok(())
2025-07-04 00:00:11 +00:00
}