rlua-builders-derive

Crates.iorlua-builders-derive
lib.rsrlua-builders-derive
version0.1.4
sourcesrc
created_at2020-06-02 22:49:06.363495
updated_at2020-06-28 14:53:14.718859
descriptionDerive helpers for struct/enum for rlua
homepage
repositoryhttps://github.com/yancouto/rlua-builders
max_upload_size
id249441
size7,243
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