rlua-builders 0.1.4

Derive helpers for struct/enum for rlua
Documentation

rlua-builders

Travis (.org) Crates.io

This package allows Rust structs/enums to be easily created from Lua.

enum Valuables {
    Coins(u32),
    Book {name: String},
    Knowledge,
}

Can then be created from Lua as:

local a = Valuables.Coins(12)
local b = Valuables.Knowledge
local c = Valuables.Book { name = "A Dance with Dragons" }

See the documentation for more information.