Add bin-features to pull in all features for bin tools.
This commit is contained in:
@@ -9,32 +9,29 @@ Tools for running Rhai scripts.
|
||||
| [`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_ |
|
||||
|
||||
There is a feature called `bin-features` which automatically includes all the necessary features
|
||||
required for building these tools.
|
||||
|
||||
|
||||
How to Run
|
||||
----------
|
||||
|
||||
```sh
|
||||
cargo run --bin sample_app_to_run
|
||||
```
|
||||
|
||||
or with required features
|
||||
|
||||
```sh
|
||||
cargo run --bin sample_app_to_run --features feature1,feature2,feature3
|
||||
cargo run --features bin-features --bin sample_app_to_run
|
||||
```
|
||||
|
||||
|
||||
How to Install
|
||||
--------------
|
||||
|
||||
To install these all tools (with [`decimal`] and [`metadata`] support), use the following command:
|
||||
To install these all tools (with full features), use the following command:
|
||||
|
||||
```sh
|
||||
cargo install --path . --bins --features decimal,metadata,debugging,rustyline
|
||||
cargo install --path . --bins --features bin-features
|
||||
```
|
||||
|
||||
or specifically:
|
||||
|
||||
```sh
|
||||
cargo install --path . --bin rhai-run --features decimal,metadata,debugging,rustyline
|
||||
cargo install --path . --bin rhai-run --features bin-features
|
||||
```
|
||||
|
Reference in New Issue
Block a user