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 Traceimplementations for GC-rooted types defined in this crate. Types inlua-types(LuaValue, LuaString, UpVal) have their Trace impls inlua-types/src/trace_impls.rsbecause 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.