Skip to main content

Crate lua_rs_runtime

Crate lua_rs_runtime 

Source
Expand description

Embedding helper for lua-rs.

This crate sits above lua-vm, lua-stdlib, and lua-parse, so it can provide the common setup sequence without creating dependency cycles: create a state, install the parser hook, install host hooks, open stdlib, and run chunks.

Structs§

AnyUserData
Chunk
DynLibId
Opaque handle to a dynamically loaded library, allocated by a DynLibLoadHook backend and stored in package._CLIBS.
Function
HostHooks
Host capabilities exposed to Lua stdlib.
Lua
Primary owned embedding handle.
LuaRuntime
A Lua state with parser and standard libraries installed.
LuaString
OsExecuteResult
Result returned by OsExecuteHook, carrying the three values that C-Lua’s luaL_execresult pushes: (boolean|nil, "exit"|"signal", int).
Table
Thread
Variadic
Variable argument or return list converted element-by-element.

Enums§

DynamicSymbol
Resolved dynamic-library symbol.
LuaError
The Lua error type. Carries a LuaValue payload because Lua errors can be any value (typically a string).
MetaMethod
OsExecuteReason
Reason a shell command terminated, returned by OsExecuteHook.
Value
Dynamically typed owned Lua value.

Traits§

FromLua
FromLuaMulti
IntoLua
IntoLuaMulti
LuaFileHandle
Capabilities required by the io library from an OS file handle.
UserData
UserDataMethods

Functions§

install_parser_hook

Type Aliases§

Error
Result