rhai/doc/src/start/install.md

28 lines
754 B
Markdown
Raw Normal View History

2020-06-20 06:06:17 +02:00
Install the Rhai Crate
=====================
{{#include ../links.md}}
2020-06-21 18:03:45 +02:00
Install the Rhai crate from [`crates.io`](https:/crates.io/crates/rhai/), start by looking up the
latest version and adding this line under `dependencies` in `Cargo.toml`:
2020-06-20 06:06:17 +02:00
```toml
[dependencies]
2020-06-21 18:03:45 +02:00
rhai = "{{version}}" # assuming {{version}} is the latest version
2020-06-20 06:06:17 +02:00
```
2020-06-21 18:03:45 +02:00
Or to automatically use the latest released crate version on [`crates.io`](https:/crates.io/crates/rhai/):
2020-06-20 06:06:17 +02:00
```toml
[dependencies]
rhai = "*"
```
Crate versions are released on [`crates.io`](https:/crates.io/crates/rhai/) infrequently,
so to track the latest features, enhancements and bug fixes, pull directly from GitHub:
```toml
[dependencies]
rhai = { git = "https://github.com/jonathandturner/rhai" }
```