Skip to main content

create_module

Function create_module 

Source
pub fn create_module(lua: &Lua) -> Result<Table>
Expand description

Create the dream_path Lua API table without registering it globally.

The API is intentionally thin and byte-preserving. Lua strings are treated as byte strings; invalid UTF-8 is accepted anywhere a path is accepted. Path arguments must be Lua strings. Missing or non-string arguments are Lua argument errors; missing path components are returned as nil.

ยงErrors

Returns an error if creating Lua functions or strings fails.