Skip to main content

Module lua_compat

Module lua_compat 

Source
Expand description

Lua 5.1 C API compatibility scaffolding. This module will host the runtime bridge and tracing that drive extern stub generation.

Structs§

LuaApiCall
Describes a traced call into the Lua 5.1 API while evaluating luaopen_*.
LuaFunction
LuaModuleSpec
Metadata about a Lua C library that should be loaded through the compatibility layer.
LuaModuleTrace
Placeholder for a traced module export that can later be turned into a Lust extern stub.
LuaOpenResult
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§

LuaValue

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

Type Aliases§

LuaTableHandle
lua_CFunction
lua_Integer
lua_Number