leetcode_tui_config/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pub mod clients;
mod config;
pub mod constants;
pub mod error_handling;
pub mod key;
pub mod theme;
pub mod utils;

pub use crate::config::CONFIG;
use color_eyre::Result;
pub use log;

pub async fn init() -> Result<()> {
    constants::init();
    config::init()?;
    error_handling::initialize_logging()?;
    error_handling::initialize_panic_handler()?;
    Ok(())
}