2024-12-05 11:16:40 -05:00
|
|
|
#![deny(clippy::unwrap_in_result)]
|
|
|
|
|
2024-12-01 20:50:11 -05:00
|
|
|
use anyhow::Result;
|
2024-12-05 01:33:44 -06:00
|
|
|
use log::LevelFilter;
|
2024-12-01 16:02:06 -05:00
|
|
|
|
|
|
|
pub mod core;
|
2024-12-02 11:51:39 -06:00
|
|
|
pub mod utils;
|
2024-12-01 16:02:06 -05:00
|
|
|
|
2024-12-02 11:51:39 -06:00
|
|
|
use utils::{logger::LOGGER, splash::print_splash};
|
|
|
|
|
2024-12-01 16:02:06 -05:00
|
|
|
#[tokio::main]
|
2024-12-01 20:50:11 -05:00
|
|
|
async fn main() -> Result<()> {
|
2024-12-03 01:12:33 -05:00
|
|
|
let t = zephyr::add(0, 2);
|
|
|
|
println!("{}", t);
|
2024-12-02 11:51:39 -06:00
|
|
|
|
2024-12-05 11:16:40 -05:00
|
|
|
log::set_logger(&*LOGGER).ok();
|
2024-12-02 11:51:39 -06:00
|
|
|
log::set_max_level(LevelFilter::Debug);
|
2024-12-01 16:02:06 -05:00
|
|
|
|
2024-12-01 23:52:12 -06:00
|
|
|
print_splash();
|
2024-12-02 11:51:39 -06:00
|
|
|
|
2024-12-05 01:33:44 -06:00
|
|
|
LOGGER.write_to_stdout();
|
2024-12-02 11:51:39 -06:00
|
|
|
|
2024-12-05 01:33:44 -06:00
|
|
|
let shell_thread = tokio::task::spawn(async { core::repl::repl::handle_repl().await });
|
2024-12-02 11:51:39 -06:00
|
|
|
|
2024-12-05 01:33:44 -06:00
|
|
|
core::init_renderer()?;
|
|
|
|
let _ = shell_thread.await?;
|
2024-12-02 11:51:39 -06:00
|
|
|
|
2024-12-01 16:02:06 -05:00
|
|
|
Ok(())
|
|
|
|
}
|