Skip to main content

Crate lua_stdlib

Crate lua_stdlib 

Source
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, and close.
debug_lib
Debug library — the debug Lua standard library module.
init
Initialization of standard libraries for Lua.
io_lib
Standard I/O library — io.* functions and file:* methods.
loadlib
The Lua package library: 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 os standard 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 --sandbox flag and lua-rs-runtime’s SandboxConfig::strict() so the dangerous-globals list has a single source of truth.
state_stub
Compatibility shim: re-exports the canonical LuaState from lua-vm and provides an extension trait holding every method the stdlib’s original translation called on an earlier stub LuaState.
string_lib
Standard library for string operations and pattern-matching — string.*.
table_lib
Lua table standard library.
utf8_lib
The utf8 standard library: char, codepoint, codes, len, offset, and charpattern. Present from Lua 5.3.