Skip to main content

Module version

Module version 

Source
Expand description

LuaVersion — the single source of truth for which Lua language version a runtime instance speaks.

This lives in lua-types, the lowest shared crate, so every layer above (parser, compiler, VM, stdlib, runtime) can name the version without a dependency cycle. Per the multi-version architecture decision (specs/MULTIVERSION_ARCHITECTURE_DECISION.md §4, §5), the version is a backend selector threaded from construction; it never appears in a public embedding-API type.

Enums§

LuaVersion
Which Lua language version a runtime instance speaks.
NumberModel
The numeric model a version uses for Lua numbers.