rilua 0.1.21

Lua 5.1.1 implemented in Rust, targeting the World of Warcraft addon variant.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- Test script for the rilua native module example.
--
-- Prerequisites:
--   cargo build --manifest-path examples/native_module/Cargo.toml
--
-- Run with:
--   LUA_CPATH="examples/native_module/target/debug/lib?.so" \
--     cargo run --features dynmod -- examples/test_native_module.lua

local hello = require("hello")
print("Module type:", type(hello))
print("Version:", hello.VERSION)
print(hello.greet("world"))
print(hello.greet("rilua"))
print(hello.greet())
print("Native module loading works!")