27 lines
605 B
Rust
27 lines
605 B
Rust
mod app;
|
|
mod app_state;
|
|
mod buffers;
|
|
mod panels;
|
|
mod perf;
|
|
mod ui_fonts;
|
|
|
|
use xserial_client::SessionManager;
|
|
|
|
fn main() {
|
|
tracing_subscriber::fmt()
|
|
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
|
|
.init();
|
|
|
|
let rt = tokio::runtime::Runtime::new().expect("tokio runtime");
|
|
let _guard = rt.enter();
|
|
|
|
let mgr = SessionManager::new();
|
|
let rx = mgr.subscribe();
|
|
|
|
let _ = eframe::run_native(
|
|
"xserial",
|
|
eframe::NativeOptions::default(),
|
|
Box::new(|cc| Ok(Box::new(app::XserialApp::new(mgr, rx, cc.egui_ctx.clone())))),
|
|
);
|
|
}
|