mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 14:51:03 +00:00
42 lines
798 B
Rust
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
|
|
}
|