Rhai - an embedded scripting language for Rust, running in the browser

Rhai is an embedded scripting language for Rust that gives you a safe and easy way to add scripting to your applications. When compiled to JavaScript it can run in the browser.

Original by Jonathan Turner. See Rhai repository.

The running application will print whatever the last result is. You can call tostr to turn strings or booleans into a string.

var answer = 2 * 21; "Hello World! The answer is " + tostr(answer) + "!"