p2p_chat/
main.rs

1//! The main entry point for the p2p-chat application.
2mod app;
3mod cli;
4mod crypto;
5mod logging;
6mod mailbox;
7mod net;
8mod network;
9mod storage;
10mod sync;
11mod types;
12mod ui;
13mod web;
14
15use anyhow::Result;
16
17/// The main function of the application.
18///
19/// This function is the entry point for the p2p-chat application. It
20/// initializes the application and launches it in either client or mailbox
21/// mode based on command-line arguments.
22///
23/// # Errors
24///
25/// Returns an error if the application fails to launch or encounters
26/// a critical error during execution.
27#[tokio::main]
28async fn main() -> Result<()> {
29    app::launch().await
30}