| Crates.io | rlua-builders |
| lib.rs | rlua-builders |
| version | 0.1.4 |
| created_at | 2020-06-02 21:46:26.471336+00 |
| updated_at | 2020-06-28 14:54:06.041793+00 |
| description | Derive helpers for struct/enum for rlua |
| homepage | |
| repository | https://github.com/yancouto/rlua-builders |
| max_upload_size | |
| id | 249427 |
| size | 10,120 |
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.