Expand description
Lua 5.4 standard library — runtime stdlib crate.
Each module corresponds to one C source under reference/lua-5.4.7/src/. See ANALYSES/file_deps.txt for the mapping.
Modules§
- auxlib
- Auxiliary library: helper functions for building Lua libraries.
- base
- Base library — Lua’s built-in functions (
print,type,pairs,pcall, …), a port oflbaselib.ccovering Lua 5.1–5.5 from one source. - bit32_
lib bit32— the Lua 5.2/5.3 32-bit bitwise library (port oflbitlib.c).- 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 (port ofliolib.c). - 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 — a pure-Rust port ofloslib.c. - 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 - Phase-B reconcile shim: re-exports the canonical
LuaStatefromlua-vmand provides an extension trait holding every method the Phase-A stdlib translation used to call on the Phase-A stub. - string_
lib - Standard library for string operations and pattern-matching —
string.*. - table_
lib - Rust port of
ltablib.c— Luatablestandard library. - utf8_
lib - The
utf8standard library:char,codepoint,codes,len,offset, andcharpattern. Present from Lua 5.3.