Calling Rust code in Lua is great for calling optimized routines, and leveraging
libraries from the Rust ecosystem. Packing Rust code for consumption in Lua
requires learning how to:
- Generate Rust bindings from C headers
- Generate dynamic libraries in Rust
- Creating Rust ↔ Lua interop code
- Load dynamic libraries in Lua
This post covers all the steps needed to wrap the Rust regex crate into a library
loadable by the Lua-based LÖVE game framework.
Read more...