tealr

A wrapper around rlua to help with embedding teal

tealr adds some traits that replace/extend those from rlua, allowing it to generate the .d.tl files needed for teal.

Small example

```rust

[derive(Clone,Copy,UserData)]

struct Example {} impl TealData for Example { fn gettypename() -> String { String::from("Example") } } fn main() -> Result<()> { let filecontents = TypeWalker::new() .proccesstype::() .generateglobal("test") .expect("oh no :("); println!("{}\n ", filecontents); Ok(()) } ``` You can find longer ones with comments on what each call does here

Future plans

Its possible for lua to load .tl files directly after it loaded the compiler. I would like to make use of this and expose methods that already perpare the lua vm in this way.

This should make it pretty much as easy to work with teal as with lua. However, I am not sure if doing this breaks any rules from rlua. As such, some research is required.