//! Client Node entry point.
//!
//! This module initializes the desktop client application, sets up the Tokio 
//! background thread for networking, and eventually binds to the UI framework.

#![forbid(unsafe_code)]
#![deny(clippy::all, clippy::pedantic)]
#![deny(clippy::unwrap_used, clippy::expect_used)]

mod network;

use tracing::{error, info};

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    tracing_subscriber::fmt::init();
    info!("Starting client node...");

    if let Err(e) = network::control::connect_and_auth("TestUser").await {
        error!("Connection error: {:?}", e);
    }

    Ok(())
}
