rhai/doc/src/start/install.md
Stephen Chung d6a08be223 Refactor.
2020-06-29 23:55:28 +08:00

877 B

Install the Rhai Crate

{{#include ../links.md}}

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 = "{{version}}"    # assuming {{version}} is the latest version

Or to automatically use the latest released crate version on crates.io:

[dependencies]
rhai = "*"

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

[dependencies]
rhai = { git = "https://github.com/jonathandturner/rhai" }