Skip to content

Jim-Holmstroem/RunRustFromLua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rust functions called from Lua (LuaJIT) FFI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published