Install the Rhai Crate

In order to use Rhai in a project, the Rhai crate must first be made a dependency.

Use specific version

The easiest way is to install the Rhai crate from, starting by looking up the latest version and adding this line under dependencies in the project’s Cargo.toml:

rhai = "1.18.0"    # assuming 1.18.0 is the latest version

Use latest release version

Automatically use the latest released crate version on

rhai = "*"

Use latest development version

Crate versions are released on infrequently, so to track the latest features, enhancements and bug fixes, pull directly from GitHub:

rhai = { git = "" }