Registry / other / mlua

mlua

JSON →
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.

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

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 footguns
gotchaRequires enabling the correct feature for the Lua version (e.g., `lua54`, `luajit`).
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
12 hits · last 30 days
gptbot
3
claudebot
3
ahrefsbot
1
Resources