Add no_std example.
This commit is contained in:
parent
a9c65a962c
commit
e7c669343e
17
README.md
17
README.md
@ -72,14 +72,15 @@ Examples
|
|||||||
A number of examples can be found in the `examples` folder:
|
A number of examples can be found in the `examples` folder:
|
||||||
|
|
||||||
| Example | Description |
|
| Example | Description |
|
||||||
| -------------------------- | --------------------------------------------------------------------------- |
|
| ------------------------------------------------------------------ | --------------------------------------------------------------------------- |
|
||||||
| `arrays_and_structs` | demonstrates registering a new type to Rhai and the usage of arrays on it |
|
| [`arrays_and_structs`](examples/arrays_and_structs.rs) | demonstrates registering a new type to Rhai and the usage of arrays on it |
|
||||||
| `custom_types_and_methods` | shows how to register a type and methods for it |
|
| [`custom_types_and_methods`](examples/custom_types_and_methods.rs) | shows how to register a type and methods for it |
|
||||||
| `hello` | simple example that evaluates an expression and prints the result |
|
| [`hello`](examples/hello.rs) | simple example that evaluates an expression and prints the result |
|
||||||
| `reuse_scope` | evaluates two pieces of code in separate runs, but using a common [`Scope`] |
|
| [`no_std`](examples/no_std.rs) | example to test out `no-std` builds |
|
||||||
| `rhai_runner` | runs each filename passed to it as a Rhai script |
|
| [`reuse_scope`](examples/reuse_scope.rs) | evaluates two pieces of code in separate runs, but using a common [`Scope`] |
|
||||||
| `simple_fn` | shows how to register a Rust function to a Rhai [`Engine`] |
|
| [`rhai_runner`](examples/rhai_runner.rs) | runs each filename passed to it as a Rhai script |
|
||||||
| `repl` | a simple REPL, interactively evaluate statements from stdin |
|
| [`simple_fn`](examples/simple_fn.rs) | shows how to register a Rust function to a Rhai [`Engine`] |
|
||||||
|
| [`repl`](examples/repl.rs) | a simple REPL, interactively evaluate statements from stdin |
|
||||||
|
|
||||||
Examples can be run with the following command:
|
Examples can be run with the following command:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user