pub fn luaopen_lfs(state: &mut LuaState) -> Result<usize, LuaError>Expand description
Module entry point. Mirrors the stock lfs C signature
int luaopen_lfs(lua_State *L) but at the Rust-native ABI used inside
this workspace: builds the lfs table, populates it with the 8 functions
above, and returns 1 to signal “one return value on the stack”.
Installed in package.preload.lfs by lua-cli’s main.rs, so
require('lfs') resolves the preload searcher and pushes this table.