rhai/no_std/no_std_test/README.md

27 lines
525 B
Markdown
Raw Permalink Normal View History

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