-
It works fine in the playground, but when I run this test locally I see
`Err(ParseError(ExprTooDeep, 5:39))`
```rust
#[test]
fn complexity_issue() {
let script = r#"
fn my_functi…
-
This code
```rust
let mut engine = Engine::new();
let mut scope: Scope = Scope::new();
engine.eval_with_scope::(&mut scope,r#"
let x = 1;
"#
).unwrap();
engine.…
-
The following code would fail, because the default INT is i64.
```rust
let v = engine.eval::("0xfffffffffeff8ffc").expect("failed to parse INT") as u64;
```
Is it possible to parse such u64 litera…
-
When creating a dynamic shared between the script and external environment, it's often convenient to create wrapper APIs for functions that do some of the heavy-lifted cast magic:
```rust
struct C…
CJKay updated
3 years ago
-
Hi, thanks for making this :)
How hard would it be to make IRust useable for live scripting of a host, e.g. for music live coding in Rust?
It seems like this crate contains not only the Rust inter…
-
From my experiments, it's relatively easy to put dyn traits into the engine.
But how to get them out?
Consider this code:
https://gist.github.com/rust-play/90a0b04c9f6960e7770397b4029187be#fi…
-
I think this is a bug as the book states that global imports are the intended way:
> They can appear anywhere a normal statement can be, but in the vast majority of cases import statements are grou…
SWW13 updated
3 years ago
-
The idea is to make a playground for Rhai scripts that runs in a web browser which can showcase the features of the Rhai scripting language. It might also be possible for others to repurpose it as a R…
-
@alvinhochun do you think it is possible to make a "minimal" WASM example with simplest build pipeline?
I think that would be a great help to people who wants to embed Rhai into WASM.
If short…
-
I'm very interested in using Rhai foremost (but not necessarily exclusively) as an expression evaluation engine, where a compiled AST is evaluated possibly millions of times. Before every execution, s…