Alternera.Plugins.Lua54 (alternera_plugin_lua54 v0.9.0)

Copy Markdown View Source

The Lua 5.4 step: a Lua 5.4 script with Script's API, run on the request or the response in a fresh WebAssembly instance per call. What it returns goes where its To rows say, as Script's returned value does.

Everything a language step does is the framework's (PluginWasmFramework.Language): settings, the env, host calls, results, the memory limit and the editor (PluginWasmFramework.StepEditor). This module names the language and its module, priv/lua54.wasm, built by guest/build.sh from guest/lua54_guest.c and guest/prelude.lua, which is the script's API (docs/internals.adoc).

Experimental: installed only with :experimental_plugins set (Pipelines.PluginRegistry) until the runtime binding is chosen.

Summary

Functions

The language this plugin runs. Built per call rather than held in a module attribute, so the module's path is the installation's, not the build machine's.

Where the built module is, in this installation.

Functions

language()

The language this plugin runs. Built per call rather than held in a module attribute, so the module's path is the installation's, not the build machine's.

module_path()

@spec module_path() :: Path.t()

Where the built module is, in this installation.