This repository has been archived on 2025-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
rhaj/_archive/rhai_engine/rhaibook/lib/rhai-dylib.md
2025-04-04 08:28:07 +02:00

833 B

Create Dynamically Loadable Rhai Libraries

{{#include ../links.md}}


`rhai-dylib` currently supports only Linux and Windows.

rhai-dylib is an independent crate that demonstrates an API to register Rhai functionalities via dynamic shared libraries (i.e. .so in Linux or .dll in Windows).

In other words, functions and [modules] can be defined in external libraries that are loaded dynamically at runtime, allowing for great flexibility at the cost of depending on the unstable Rust ABI.

A [module resolver] is also included.

On crates.io: rhai-dylib

On GitHub: rhaiscript/rhai-dylib

API trait name: rhai_dylib::Plugin