Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Examples

Rust examples live in the examples folder:

ExampleShows
game_of_lifeA full app driven by Lua or Rune scripts, with callbacks, static scripts and custom bindings
runscriptRunning script files given on the command line
script_loadingWaiting for scripts to load with ScriptPipelineState
custom_conversionsHand-written FromScript / IntoScript conversions
docgenGenerating LAD files and Lua language server definitions

Run one with cargo run --example <name> --features lua54 (docgen needs lua_language_server_files).

For example scripts, see the regression test suite in assets/tests, which covers every scripting function in Lua and Rune.