Expand description
Pasta Lua Runtime - Lua VM host for Pasta scripts.
This module provides the PastaLuaRuntime struct which hosts a Lua VM and integrates pasta modules for script execution.
§Example
ⓘ
use pasta_lua::{LuaTranspiler, PastaLuaRuntime};
let transpiler = LuaTranspiler::default();
let mut output = Vec::new();
let context = transpiler.transpile(&pasta_file, &mut output)?;
let runtime = PastaLuaRuntime::new(context)?;
let result = runtime.exec("return 1 + 1")?;Modules§
- finalize
- Finalize module - Collects Lua-side registries and builds SearchContext. Finalize Scene Module - Collects Lua-side registries and builds SearchContext.
- log
- Log module - Lua logging bridge to Rust tracing infrastructure. Log module for Lua - bridges Lua log calls to Rust tracing infrastructure.
- persistence
- Persistence module - Persistent data storage for Lua scripts. Persistence module for Lua.
Structs§
- Pasta
LuaRuntime - Pasta Lua Runtime - hosts a Lua VM with pasta modules.
- Runtime
Config - Configuration for which standard libraries to enable in the Lua runtime.
Functions§
- lua_
require - Execute Lua
require()from Rust.