Skip to main content

Module lua

Module lua 

Source

Re-exports§

pub use builtins::LuaAxumRouter;

Modules§

async_bridge
builtins
file_source
Pluggable file source for Lua’s fs.read / fs.read_bytes.

Constants§

BLOCK_GLOBALS_ENV
Comma-separated list of additional globals to nil out at VM creation time (defense-in-depth knob for hardened deployments). Names support dotted paths into stdlib tables — e.g. ASSAY_BLOCK_GLOBALS=dofile,os.execute,debug.getinfo.
MODULES_PATH_ENV
Environment variable to override the global module search path.
READONLY_ENV
Set to 1 or true to activate read-only mode for every VM the process creates. Mutating builtins stay registered but raise readonly: <name> blocked errors instead of executing. The --readonly CLI flag activates the same mode per invocation.

Functions§

create_vm
create_vm_configured
create_vm_with_lib_path
create_vm_with_paths
inject_env
readonly_from_env