Expand description
Lua 5.1 C API compatibility scaffolding. This module will host the runtime bridge and tracing that drive extern stub generation.
Structs§
- LuaApi
Call - Describes a traced call into the Lua 5.1 API while evaluating
luaopen_*. - LuaFunction
- LuaModule
Spec - Metadata about a Lua C library that should be loaded through the compatibility layer.
- LuaModule
Trace - Placeholder for a traced module export that can later be turned into a Lust extern stub.
- LuaOpen
Result - Result of running a
luaopen_*entrypoint through the compat shim. - LuaState
- Lightweight state used while running
luaopen_*entrypoints via the compat layer. This is not a full Lua VM; it is just enough structure to drive API tracing and convert between Rust-side LuaValues and Lust-visible LuaValue enums. - LuaTable
- LuaThread
- LuaUserdata
- luaL_
Buffer - luaL_
Reg - lua_
State
Enums§
Constants§
- LUAL_
BUFFERSIZE - Simplified mirror of the Lua 5.1 buffer helper type.
- LUA_
ENVIRONINDEX - LUA_
ERRERR - LUA_
ERRMEM - LUA_
ERRRUN - Lua 5.1 error codes.
- LUA_
ERRSYNTAX - LUA_
GLOBALSINDEX - LUA_
REGISTRYINDEX - LUA_
TBOOLEAN - LUA_
TFUNCTION - LUA_
TLIGHTUSERDATA - LUA_
TNIL - LUA_
TNONE - Lua 5.1 type codes.
- LUA_
TNUMBER - LUA_
TSTRING - LUA_
TTABLE - LUA_
TTHREAD - LUA_
TUSERDATA
Functions§
- luaL_
addlstring ⚠ - luaL_
addstring ⚠ - luaL_
addvalue ⚠ - luaL_
argerror ⚠ - luaL_
buffinit ⚠ - luaL_
checkinteger ⚠ - luaL_
checklstring ⚠ - luaL_
checknumber ⚠ - luaL_
checkoption ⚠ - luaL_
checkstack ⚠ - luaL_
checkstring ⚠ - luaL_
checktype ⚠ - luaL_
checkudata ⚠ - luaL_
error ⚠ - luaL_
getmetatable ⚠ - luaL_
loadbuffer ⚠ - luaL_
loadstring ⚠ - luaL_
newmetatable ⚠ - luaL_
newstate ⚠ - — C ABI shims —
- luaL_
openlib ⚠ - luaL_
openlibs ⚠ - luaL_
optinteger ⚠ - luaL_
optlstring ⚠ - luaL_
optnumber ⚠ - luaL_
prepbuffer ⚠ - luaL_
pushresult ⚠ - luaL_
ref ⚠ - luaL_
register ⚠ - luaL_
unref ⚠ - lua_
call ⚠ - lua_
checkstack ⚠ - lua_
close ⚠ - lua_
concat ⚠ - lua_
createtable ⚠ - lua_
equal ⚠ - lua_
error ⚠ - lua_
getfield ⚠ - lua_
getmetatable ⚠ - lua_
gettable ⚠ - lua_
gettop ⚠ - lua_
insert ⚠ - lua_
iscfunction ⚠ - lua_
isnumber ⚠ - lua_
isstring ⚠ - lua_
istable ⚠ - lua_
isuserdata ⚠ - lua_
lessthan ⚠ - lua_
newstate ⚠ - lua_
newtable ⚠ - lua_
newuserdata ⚠ - lua_
next ⚠ - lua_
objlen ⚠ - lua_
pcall ⚠ - lua_
pushboolean ⚠ - lua_
pushcclosure ⚠ - lua_
pushcfunction ⚠ - lua_
pushfstring ⚠ - lua_
pushinteger ⚠ - lua_
pushlightuserdata ⚠ - lua_
pushlstring ⚠ - lua_
pushnil ⚠ - lua_
pushnumber ⚠ - lua_
pushstring ⚠ - lua_
pushvalue ⚠ - lua_
rawequal ⚠ - lua_
rawget ⚠ - lua_
rawgeti ⚠ - lua_
rawset ⚠ - lua_
rawseti ⚠ - lua_
remove ⚠ - lua_
replace ⚠ - lua_
setfield ⚠ - lua_
setmetatable ⚠ - lua_
settable ⚠ - lua_
settop ⚠ - lua_
to_ lust - lua_
toboolean ⚠ - lua_
tocfunction ⚠ - lua_
tointeger ⚠ - lua_
tolstring ⚠ - lua_
tonumber ⚠ - lua_
topointer ⚠ - lua_
touserdata ⚠ - lua_
type ⚠ - lua_
typename ⚠ - render_
table_ stub - Render a Lust extern stub for a Lua table value returned by a
luaopen_*call. - trace_
luaopen