yazi/yazi-shared/src/lib.rs
2025-01-09 15:58:38 +08:00

14 lines
403 B
Rust

#![allow(clippy::option_map_unit_fn)]
yazi_macro::mod_pub!(errors event shell theme translit url);
yazi_macro::mod_flat!(chars condition debounce either env id layer natsort number os rand ro_cell sync_cell terminal throttle time);
pub fn init() {
LOG_LEVEL.replace(<_>::from(std::env::var("YAZI_LOG").unwrap_or_default()));
#[cfg(unix)]
USERS_CACHE.with(<_>::default);
event::Event::init();
}