Skip to main content

Crate lua_vm

Crate lua_vm 

Source
Expand description

Lua 5.4 virtual machine — runtime crate.

Modules map to the canonical C source files per ANALYSES/file_deps.txt.

Modules§

api
Rust-native translation of lapi.c — the Lua C-API surface.
debug
Debug interface — ported from ldebug.c.
do_
Stack and call structure of Lua.
dump
Pre-compiled Lua chunk serializer.
func
Auxiliary functions to manipulate prototypes and closures.
object
Generic functions over Lua objects.
prelude
Glob-imported by every module so the extension traits below resolve without each module having to list them individually.
state
Global interpreter state.
string
Bootstrap string table used only to construct the pre-allocated out-of-memory message during VM startup.
table
Lua table — canonical implementation now lives in lua-types::table.
tagmethods
Tag methods (metamethods) — ported from ltm.c / ltm.h.
trace_impls
Trace implementations for GC-rooted types defined in this crate. Types in lua-types (LuaValue, LuaString, UpVal) have their Trace impls in lua-types/src/trace_impls.rs because of Rust’s orphan rule.
undump
Load precompiled Lua chunks.
vm
Lua virtual machine — port of lvm.c.
zio
Buffered streams — Rust port of lzio.c + lzio.h.