2020-12-29 08:36:42 +01:00
|
|
|
Rhai Tools
|
|
|
|
==========
|
|
|
|
|
2021-04-22 17:02:25 +02:00
|
|
|
Tools for running Rhai scripts.
|
2020-12-29 08:36:42 +01:00
|
|
|
|
2022-01-30 02:41:51 +01:00
|
|
|
| Tool | Required feature(s) | Description |
|
|
|
|
| -------------------------------------------------------------------------------- | :-----------------: | --------------------------------------------------- |
|
|
|
|
| [`rhai-run`](https://github.com/rhaiscript/rhai/blob/main/src/bin/rhai-run.rs) | | runs each filename passed to it as a Rhai script |
|
|
|
|
| [`rhai-repl`](https://github.com/rhaiscript/rhai/blob/main/src/bin/rhai-repl.rs) | `rustyline` | simple REPL that interactively evaluates statements |
|
|
|
|
| [`rhai-dbg`](https://github.com/rhaiscript/rhai/blob/main/src/bin/rhai-dbg.rs) | `debugging` | the _Rhai Debugger_ |
|
|
|
|
|
2022-02-03 14:17:47 +01:00
|
|
|
There is a feature called `bin-features` which automatically includes all the necessary features
|
|
|
|
required for building these tools.
|
|
|
|
|
2020-12-29 08:36:42 +01:00
|
|
|
|
|
|
|
How to Run
|
|
|
|
----------
|
|
|
|
|
2022-01-30 02:41:51 +01:00
|
|
|
```sh
|
2022-02-03 14:17:47 +01:00
|
|
|
cargo run --features bin-features --bin sample_app_to_run
|
2022-01-30 02:41:51 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
How to Install
|
|
|
|
--------------
|
|
|
|
|
2022-02-03 14:17:47 +01:00
|
|
|
To install these all tools (with full features), use the following command:
|
2022-01-30 02:41:51 +01:00
|
|
|
|
|
|
|
```sh
|
2022-02-03 14:17:47 +01:00
|
|
|
cargo install --path . --bins --features bin-features
|
2022-01-30 02:41:51 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
or specifically:
|
|
|
|
|
|
|
|
```sh
|
2022-02-03 14:17:47 +01:00
|
|
|
cargo install --path . --bin rhai-run --features bin-features
|
2022-01-30 02:41:51 +01:00
|
|
|
```
|