yazi/yazi-fm/src/main.rs
2026-01-27 22:03:48 +08:00

42 lines
798 B
Rust

#[cfg(all(not(target_os = "macos"), not(target_os = "windows")))]
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
yazi_macro::mod_pub!(app cmp confirm help input mgr notify pick spot tasks which);
yazi_macro::mod_flat!(dispatcher executor logs panic root router signals term);
#[tokio::main]
async fn main() -> anyhow::Result<()> {
Panic::install();
yazi_shared::init();
Logs::start()?;
_ = fdlimit::raise_fd_limit();
yazi_tty::init();
yazi_fs::init();
yazi_config::init()?;
yazi_vfs::init();
yazi_adapter::init()?;
yazi_boot::init();
yazi_proxy::init();
yazi_dds::init();
yazi_widgets::init();
yazi_watcher::init();
yazi_plugin::init()?;
yazi_dds::serve();
yazi_shared::LOCAL_SET.run_until(app::App::serve()).await
}