Install the Rhai Crate
In order to use Rhai in a project, the Rhai crate must first be made a dependency.
The easiest way is to install the Rhai crate from crates.io
,
starting by looking up the latest version and adding this line under dependencies
in the project’s Cargo.toml
:
[dependencies]
rhai = "1.20.0" # assuming 1.20.0 is the latest version
Automatically use the latest released crate version on crates.io
:
[dependencies]
rhai = "*"