yazi/yazi-runner/src/lib.rs
2026-07-13 02:01:37 +08:00

10 lines
314 B
Rust

yazi_macro::mod_pub!(entry fetcher loader preloader previewer provider);
yazi_macro::mod_flat!(runner spot);
pub static RUNNER: yazi_shim::cell::RoCell<Runner> = yazi_shim::cell::RoCell::new();
pub fn init(setter: fn(&mlua::Lua) -> mlua::Result<()>) {
crate::loader::init();
RUNNER.init(Runner { setter });
}