rlua-builders

Crates.iorlua-builders
lib.rsrlua-builders
version0.1.4
sourcesrc
created_at2020-06-02 21:46:26.471336
updated_at2020-06-28 14:54:06.041793
descriptionDerive helpers for struct/enum for rlua
homepage
repositoryhttps://github.com/yancouto/rlua-builders
max_upload_size
id249427
size10,120
Yan Soares Couto (yancouto)

documentation

README

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.

Commit count: 22

cargo fmt