Rhai - embedded scripting for Rust
Rhai is a tiny, simple and very fast embedded scripting language for Rust
that gives you a safe and easy way to add scripting to your applications.
It provides a familiar syntax based on JS and Rust and a simple Rust interface.
Here is a quick example. First, the contents of my_script.rhai
:
compute_something
And the Rust part:
use ;
let mut engine = new;
engine.register_fn;
assert_eq!;