Rhai: A Safe and Efficient Embedded Scripting Language for Rust

2025-01-20
Rhai: A Safe and Efficient Embedded Scripting Language for Rust

Rhai is an embedded scripting language and evaluation engine for Rust, providing a safe and easy way to add scripting capabilities to any application. It targets all CPU and OS architectures supported by Rust, including WebAssembly, and features a simple, JavaScript-like syntax. Rhai boasts efficient evaluation and tight integration with native Rust functions and types, allowing seamless passing and use of Rust values. Its robust security features protect against malicious attacks such as stack overflows and runaway scripts.