27 lines
480 B
Rust
27 lines
480 B
Rust
pub mod error;
|
|
pub mod args;
|
|
pub mod core;
|
|
pub mod native_node;
|
|
pub mod seeds_constants;
|
|
pub mod watcher;
|
|
pub mod cli;
|
|
|
|
use crate::{args::get_args, watcher::watcher::Watcher};
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
|
|
let args = get_args();
|
|
|
|
let mut watcher = Watcher::build().file(args.seed_file).addr(args.addr).start().await;
|
|
|
|
loop {
|
|
if !watcher.poll().await.is_ok_and(|b| b) {
|
|
break ;
|
|
}
|
|
}
|
|
|
|
ratatui::restore();
|
|
println!("Hello, world!");
|
|
}
|