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 to0
, 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
… - link-lua54 default link-static?
-
Include attributes to link to
lua54
usingraw-dylib
on Windows, andlua5.4
usingdylib
otherwise. You may disable this if, for example, you have your ownbuild.rs
script that links Lua in a different way. - link-static = link-lua54
-
Link statically the library
lua54
on Windows, andlua5.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
somewhere in the dependency tree.default-features = false