Skip to content

Lua API

Reference for every namespace exposed under the global smelt table. Signatures are derived from the Rust closure's argument tuple and return type, so the LuaCATS-style annotation always matches what mlua actually marshals.

Coverage: 61 namespace(s), 247 function(s), 33 class(es), 9 alias(es).

IDE completion

Stubs land in runtime/lua/smelt/_meta/ (one file per namespace, plus _types.lua for shared records and aliases). Point lua-language-server at that directory — see runtime/.luarc.json for a working config.

Host namespaces

Available in every runtime, including headless mode.

UiHost namespaces

Requires a terminal UI; calling these from headless mode raises.

Types

  • Classes & aliases — typed opts records and string-literal unions referenced from the namespace pages.