14 lines
523 B
Markdown
14 lines
523 B
Markdown
Plugins
|
|
=======
|
|
|
|
{{#include ../links.md}}
|
|
|
|
Rhai contains a robust _plugin_ system that greatly simplifies registration of custom
|
|
functionality.
|
|
|
|
Instead of using the large `Engine::register_XXX` API or the parallel `Module::set_fn_XXX` API,
|
|
a _plugin_ simplifies the work of creating and registering new functionality in an [`Engine`].
|
|
|
|
Plugins are processed via a set of procedural macros under the `rhai::plugins` module. These
|
|
allow registering Rust functions directly in the Engine, or adding Rust modules as packages.
|