Expand description
Lua standard library — runtime stdlib crate, covering Lua 5.1–5.5 from one source per module.
Modules§
- auxlib
- Auxiliary library: helper functions for building Lua libraries.
- base
- Base library — Lua’s built-in functions (
print,type,pairs,pcall, …), covering Lua 5.1–5.5 from one source. - bit32_
lib bit32— the Lua 5.2/5.3 32-bit bitwise library.- coro_
lib - Coroutine library — the
coroutine.*standard-library table:create,resume,running,status,wrap,yield,isyieldable, andclose. - debug_
lib - Debug library — the
debugLua standard library module. - init
- Initialization of standard libraries for Lua.
- io_lib
- Standard I/O library —
io.*functions andfile:*methods. - loadlib
- The Lua
packagelibrary:require,package.loadlib,package.searchpath, and the four built-in module searchers (preload, Lua-file, C-library, C-root). - math_
lib - Standard mathematical library —
math.*. - os_lib
- Lua
osstandard library —os.*time/date arithmetic, environment, and process control. - sandbox
- Shared sandbox helpers: the canonical strict capability-strip list and a
global-stripping routine, used by both the CLI
--sandboxflag andlua-rs-runtime’sSandboxConfig::strict()so the dangerous-globals list has a single source of truth. - state_
stub - Compatibility shim: re-exports the canonical
LuaStatefromlua-vmand provides an extension trait holding every method the stdlib’s original translation called on an earlier stubLuaState. - string_
lib - Standard library for string operations and pattern-matching —
string.*. - table_
lib - Lua
tablestandard library. - utf8_
lib - The
utf8standard library:char,codepoint,codes,len,offset, andcharpattern. Present from Lua 5.3.