Rhai is a lightweight, embedded scripting language and evaluation engine designed specifically for integration into Rust applications, offering a safe and flexible way to add dynamic behavior without sacrificing performance or security. It features a syntax that blends familiarity from JavaScript and Rust, making it approachable for developers while maintaining expressive power through dynamic typing and simple constructs. Rhai is optimized for embedding, allowing developers to expose native Rust functions, types, and data structures directly to scripts, enabling seamless interoperability between compiled and interpreted code. The engine is designed with minimal reliance on unsafe code, prioritizing safety while still delivering efficient execution performance suitable for real-time applications. It supports a wide range of data types, including arrays, maps, and Unicode strings, as well as custom types defined in Rust, making it versatile for scripting complex logic.

Features

  • Embeddable scripting engine tightly integrated with Rust applications
  • Simple and expressive syntax inspired by JavaScript and Rust
  • Supports dynamic typing with built-in complex data structures
  • Direct interoperability with Rust functions, types, and variables
  • Runs on multiple targets including WebAssembly and no_std environments
  • Safe execution model with minimal use of unsafe code

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Rhai

Rhai Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Rhai!

Additional Project Details

Operating Systems

Linux

Programming Language

Rust

Related Categories

Rust Software Development Software

Registered

2026-04-07