4 releases

0.1.4 Jun 28, 2020
0.1.2 Jun 6, 2020
0.1.1 Jun 3, 2020
0.1.0 Jun 2, 2020

#10 in #rlua

34 downloads per month
Used in rlua-builders

MIT license

8KB
122 lines

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.


lib.rs:

The rlua-builders-derive crate provides derivers for the rlua-builders crate.

This crate provides a deriver for LuaBuilder from rlua-builders, as well as for UserData from rlua. This is not usually imported directly. See rlua-builders for more documentation.

Dependencies

~1.5MB
~33K SLoC