blob: b791b69a74afa65192e2fb227d0e1e67e7f9291d [file] [log] [blame]
use figlet_rs::FIGfont;
use monoio::utils::CtrlC;
use std::error::Error;
use tracing::info;
#[monoio::main(timer_enabled = true)]
async fn main() -> Result<(), Box<dyn Error>> {
tracing_subscriber::fmt::init();
let standard_font = FIGfont::standard().unwrap();
let figure = standard_font.convert("Iggy TPC");
println!("{}", figure.unwrap());
info!("Press CTRL+C shutdown Iggy TPC...");
CtrlC::new().unwrap().await;
info!("Iggy TPC has shutdown successfully.");
Ok(())
}