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

Create a Module in Rust

The Easy Way – Plugin

By far the simplest way to create a module is via a plugin module which converts a normal Rust module into a Rhai module via procedural macros.

The Hard Way – Module API

Manually creating a module is possible via the Module public API, which is volatile and may change from time to time.

Module public API

For the complete Module public API, refer to the documentation online.