rhai/no_std/no_std_test/README.md

27 lines
525 B
Markdown
Raw Normal View History

2020-07-21 23:08:46 +08:00
`no-std` Test Sample
====================
2020-07-21 22:32:24 +08:00
2020-07-21 23:08:46 +08:00
This sample application is a bare-bones `no-std` build for testing.
2020-07-21 22:32:24 +08:00
[`wee_alloc`](https://crates.io/crates/wee_alloc) is used as the allocator.
2021-07-08 14:09:31 +08:00
To Build
--------
2020-07-21 22:32:24 +08:00
The nightly compiler is required:
2021-07-08 14:09:31 +08:00
```bash
cargo +nightly build --release
```
A specific profile can also be used:
2020-07-21 22:32:24 +08:00
```bash
2022-01-11 11:34:15 +08:00
cargo +nightly build --profile unix
2020-07-21 22:32:24 +08:00
```
2021-07-08 14:09:31 +08:00
Three profiles are defined: `unix`, `windows` and `macos`.
2020-07-21 22:32:24 +08:00
The release build is optimized for size. It can be changed to optimize on speed instead.