Cargo Features

[dependencies]
lunka = { version = "0.10.0", default-features = false, features = ["alloc", "use-32-bits", "auxlib", "stdlibs", "link-lua54", "link-static"] }
alloc default

Use Rust's alloc crate.

use-32-bits

Use definitions for 32 bits max. This is analogous to the LUA_32BITS define, and should be set appropriately depending on the compiled Lua settings. It's usually set to 0, so this is disabled by default.

auxlib default

Include and use stuff from lauxlib.h.

Affects cdef::auxlib

stdlibs default

Include and use definitions for importing the standard libraries (in lualib.h).

Affects cdef::stdlibs

Include attributes to link to lua54 using raw-dylib on Windows, and lua5.4 using dylib otherwise. You may disable this if, for example, you have your own build.rs script that links Lua in a different way.

Link statically the library lua54 on Windows, and lua5.4 on other platforms. This may be useful for applications, since Lua will become embedded in the executable.

default = alloc, auxlib, link-lua54, stdlibs

These default features are set whenever lunka is added without default-features = false somewhere in the dependency tree.