#[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 renderer root router signals); #[tokio::main] async fn main() -> anyhow::Result<()> { Panic::install(); yazi_shared::init(); Logs::start()?; _ = fdlimit::raise_fd_limit(); yazi_fs::init(); yazi_vfs::init(); yazi_tty::init(); yazi_config::init()?; yazi_boot::init(); yazi_term::init()?; yazi_adapter::init()?; yazi_dds::init(); yazi_widgets::init(); yazi_watcher::init(); yazi_runner::init(yazi_plugin::slim_lua); yazi_plugin::init()?; yazi_dds::serve(); yazi_actor::init(); yazi_shared::LOCAL_SET.run_until(app::App::serve()).await }