mod auth; mod config; mod srp; #[tokio::main] async fn main() { let config = match config::Config::load() { Ok(c) => c, Err(e) => { eprintln!("Failed to load bridge.toml: {}", e); std::process::exit(1); } }; let client = match auth::build_client() { Ok(c) => c, Err(e) => { eprintln!("Failed to build HTTP client: {}", e); std::process::exit(1); } }; match auth::authenticate(&client, &config.proton).await { Ok(session) => println!("Session UID: {}", session.uid), Err(e) => { eprintln!("Authentication failed: {}", e); std::process::exit(1); } } }