Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
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.
It also contains some macro's to make it easier to load/execute teal scripts. Without having to compile them yourself first.
Expose a value to teal
Exposing types to teal as userdata is almost the same using tealr as it is using rlua
//now, implement TealData. This tells rlua what methods are available and tealr what the types are
Create a .d.tl file
let file_contents = new
.
.generate_global
.expect;
println!
Compile inline teal code into lua
let code = compile_inline_teal!;
Embed the teal compiler, run teal files as if they where lua
let compiler = embed_compiler!;
let res = new.context?;
You can find longer ones with comments on what each call does here
Future plans
Tealr can already help with 2 ways to run teal scripts. It can compile inline teal code at the same time as your rust code It can also embed the teal compiler for you, allowing you to execute external teal scripts like normal lua scripts. There is a third method I want tealr to help with. In this mode, it will compile a teal project, pack it into 1 file and embed it into the project.
Besides support for just rlua, supporting mlua is also planned.