Registry / other / rlua
library0.20.1rscratesunverified

High level bindings to Lua 5.x

# Cargo.toml [dependencies] rlua = "0.20.1"
INSTALL
IMPORT
SIG · RLUA
R
rlua
otherrustv0.20.1
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 rlua::Lua;

Evaluates a Lua expression and prints the result.

use rlua::Lua; fn main() { let lua = Lua::new(); lua.context(|ctx| { let result: String = ctx.eval("return 'Hello from Lua'").unwrap(); println!("{}", result); }); }
Debug
Known issues
gotchaRequires Lua 5.4 or 5.3; ensure the correct Lua library is installed.
fix
Install Lua development headers (e.g., liblua5.4-dev on Ubuntu).
affects: >=0.20.0
Upgrade
Version history
0.20.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
rlua — cargo add rlua · libregistry