Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 703 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 703 Bytes

DEPRECATED!!

Superseeded by: Rust Lua FFI

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.

RunRustFromLua

Simple showcase on how to call Rust functions from Lua FFI.

It is currently supporting numeric, strings and structs.

Run

Runs within a docker container so that the demonstration to be fairly platform independent.

make run

Note

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).