hlua 0.4.3

Zero-cost high-level wrapper for Lua
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate hlua;

// To see the generated assembly, run:
// cargo rustc --release --example basic -- --emit=asm

fn main() {
    let mut lua = hlua::Lua::new();

    lua.set("a", 12);
    let val: i32 = lua.execute(r#"return a * 5;"#).unwrap();

    assert_eq!(val, 60);
}