Fully superseeded by https://github.com/distil/rust_lua_ffi/ easy to use automatic FFI code generation.
All PRs to this repository will be closed.
Simple showcase on how to call Rust functions from Lua FFI.
It is currently supporting numeric, strings and structs.
Runs within a docker container so that the demonstration to be fairly platform independent.
make run
Many failures in Lua FFI produce the completely unrelated error message
luajit: bad argument #1 to '?' (cannot convert 'const char *' to 'char *')
check the functions are exported correctly (pub module, pub function, no_mangle etc).