yazi/yazi-shared/src/lib.rs
2025-08-17 16:25:04 +08:00

14 lines
431 B
Rust

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