Skip to main content

Module lua

Module lua 

Source
Expand description

Embedded Lua bindings for byte-first path normalization.

This module is available with the lua feature. It does not define a cdylib Lua module; hosts embed it into their own mlua::Lua state and choose the namespace they want.

The feature selects mlua with vendored LuaJIT in 5.2 compatibility mode. Libraries should avoid enabling it transitively unless they own the embedding runtime. Hosts using a different Lua runtime should bind the Rust byte API themselves. Returned Lua strings may contain embedded NUL bytes; C hosts must use length-aware Lua APIs rather than C string length.

Constants§

MODULE_NAME
Default Lua global name used by register_module.

Functions§

create_module
Create the dream_path Lua API table without registering it globally.
register_module
Register the Lua API table as the dream_path global.
register_module_as
Register the Lua API table under a caller-selected global name.