Docs revision.
This commit is contained in:
parent
7e60e9ff54
commit
da1c5e364d
@ -8,9 +8,11 @@ Easy
|
|||||||
|
|
||||||
* Easy-to-use language similar to JavaScript+Rust with dynamic typing.
|
* Easy-to-use language similar to JavaScript+Rust with dynamic typing.
|
||||||
|
|
||||||
* Tight integration with native Rust [functions] and [types][custom types], including [getters/setters], [methods][custom type] and [indexers].
|
* Tight integration with native Rust [functions] and [types][custom types] including [getters/setters],
|
||||||
|
[methods][custom type] and [indexers].
|
||||||
|
|
||||||
* Freely pass Rust variables/constants into a script via an external [`Scope`].
|
* Freely pass Rust variables/constants into a script via an external [`Scope`] - all clonable Rust types are supported seamlessly
|
||||||
|
without the need to implement any special trait.
|
||||||
|
|
||||||
* Easily [call a script-defined function]({{rootUrl}}/engine/call-fn.md) from Rust.
|
* Easily [call a script-defined function]({{rootUrl}}/engine/call-fn.md) from Rust.
|
||||||
|
|
||||||
@ -51,12 +53,14 @@ Safe
|
|||||||
|
|
||||||
* Relatively little `unsafe` code (yes there are some for performance reasons).
|
* Relatively little `unsafe` code (yes there are some for performance reasons).
|
||||||
|
|
||||||
* Sand-boxed - the scripting [`Engine`], if declared immutable, cannot mutate the containing environment unless [explicitly permitted]({{rootUrl}}/patterns/control.md).
|
* Sand-boxed - the scripting [`Engine`], if declared immutable, cannot mutate the containing environment unless
|
||||||
|
[explicitly permitted]({{rootUrl}}/patterns/control.md).
|
||||||
|
|
||||||
Rugged
|
Rugged
|
||||||
------
|
------
|
||||||
|
|
||||||
* Protected against malicious attacks (such as [stack-overflow][maximum call stack depth], [over-sized data][maximum length of strings], and [runaway scripts][maximum number of operations] etc.) that may come from untrusted third-party user-land scripts.
|
* Protected against malicious attacks (such as [stack-overflow][maximum call stack depth], [over-sized data][maximum length of strings],
|
||||||
|
and [runaway scripts][maximum number of operations] etc.) that may come from untrusted third-party user-land scripts.
|
||||||
|
|
||||||
* Track script evaluation [progress] and manually terminate a script run.
|
* Track script evaluation [progress] and manually terminate a script run.
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ Rhai works seamlessly with _any_ Rust type. The type can be _anything_; it does
|
|||||||
have any prerequisites other than being `Clone`. It does not need to implement
|
have any prerequisites other than being `Clone`. It does not need to implement
|
||||||
any other trait or use any custom `#[derive]`.
|
any other trait or use any custom `#[derive]`.
|
||||||
|
|
||||||
This allows Rhai to be integrated into an existing code base with as little plumbing
|
This allows Rhai to be integrated into an existing Rust code base with as little plumbing
|
||||||
as possible, usually silently and seamlessly. External types that are not defined
|
as possible, usually silently and seamlessly. External types that are not defined
|
||||||
within the same crate (and thus cannot implement special Rhai traits or
|
within the same crate (and thus cannot implement special Rhai traits or
|
||||||
use special `#[derive]`) can also be used easily with Rhai.
|
use special `#[derive]`) can also be used easily with Rhai.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user