Registry / other / mlua
library0.11.6rscratesunverified

High level bindings to Lua 5.5/5.4/5.3/5.2/5.1 (including LuaJIT) and Luau with async/await features and support of writing native Lua modules in Rust.

# Cargo.toml [dependencies] mlua = "0.11.6"
INSTALL
IMPORT
SIG · MLUA
M
mlua
otherrustv0.11.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Lua
use mlua::Lua;

Evaluate Lua code from Rust.

use mlua::Lua; fn main() -> mlua::Result<()> { let lua = Lua::new(); let value: i32 = lua.load("1 + 2").eval()?; println!("Result: {}", value); Ok(()) }
Debug
Known issues
gotchaRequires enabling the correct feature for the Lua version (e.g., `lua54`, `luajit`).
fix
Add `features = ["lua54"]` to your Cargo.toml dependency.
affects: >=0.11.0
Upgrade
Version history
0.11.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mlua — cargo add mlua · libregistry