2021-07-08 08:02:38 +02:00
|
|
|
`no-std` REPL Sample
|
|
|
|
====================
|
|
|
|
|
|
|
|
This sample application is the same version as the `rhai-repl` tool, compiled for `no-std`.
|
|
|
|
|
|
|
|
[`wee_alloc`](https://crates.io/crates/wee_alloc) is used as the allocator.
|
|
|
|
|
|
|
|
|
2021-07-08 08:09:31 +02:00
|
|
|
To Build
|
|
|
|
--------
|
2021-07-08 08:02:38 +02:00
|
|
|
|
|
|
|
The nightly compiler is required:
|
|
|
|
|
2021-07-08 08:09:31 +02:00
|
|
|
```bash
|
|
|
|
cargo +nightly build --release
|
|
|
|
```
|
|
|
|
|
|
|
|
A specific profile can also be used:
|
|
|
|
|
2021-07-08 08:02:38 +02:00
|
|
|
```bash
|
|
|
|
cargo +nightly build --profile unix -Z unstable-options
|
|
|
|
```
|
|
|
|
|
2021-07-08 08:09:31 +02:00
|
|
|
Three profiles are defined: `unix`, `windows` and `macos`.
|
2021-07-08 08:02:38 +02:00
|
|
|
|
|
|
|
The release build is optimized for size. It can be changed to optimize on speed instead.
|