- Refactor `event` handling (heavily inspired by [crates-tui](https://github.com/ratatui/crates-tui/) via [Tui with Terminal and EventHandler](https://ratatui.rs/recipes/apps/terminal-and-event-handler/)) - Refactor widget structure - Disable `nixos-unstable` temporarily - Add `.rustfmt.toml`
20 lines
337 B
Rust
20 lines
337 B
Rust
mod app;
|
|
mod events;
|
|
mod terminal;
|
|
mod utils;
|
|
mod widgets;
|
|
|
|
use app::App;
|
|
use color_eyre::Result;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<()> {
|
|
color_eyre::install()?;
|
|
let terminal = terminal::init()?;
|
|
|
|
let events = events::Events::new();
|
|
App::new().run(terminal, events).await?;
|
|
terminal::restore()?;
|
|
Ok(())
|
|
}
|