feat: add async runtime with tokio and tracing
This commit is contained in:
1 parent
cb3453f0d0
commit
a8f409d2ff
5 files changed
+1603
-39
No files matched your search
+8
-3
@@ -1,9 +1,14 @@
|
||||
mod cli;
|
||||
pub mod config;
|
||||
pub mod instance;
|
||||
pub mod net;
|
||||
pub mod tui;
|
||||
|
||||
fn main() {
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let _guard = tui::logging::init();
|
||||
color_eyre::install().expect("Failed to install color-eyre");
|
||||
cli::init()
|
||||
if let Err(e) = color_eyre::install() {
|
||||
eprintln!("Failed to install color-eyre: {}", e);
|
||||
}
|
||||
cli::init().await
|
||||
}
|
||||
Reference in new issue
Block a user