Closed SeokminHong closed 1 year ago
check out: https://rhai.rs/book/safety/max-stmt-depth.html
I suppose you're running on debug
build?
Yes, I think that's the problem. Thank you!
However, why does the closure inside the string interpolation takes too many depths? When I tested, it took 19 depth, even though it looked very simple.
However, why does the closure inside the string interpolation takes too many depths? When I tested, it took 19 depth, even though it looked very simple.
That's a good question... I'll look into it...
Right now, it is simplistically counting one function call level in Rhai's Rust code base to be one level, so it is quite arbitrary...
Hi again.
I tried a simple Rhai code on Playground:
The above code returns
["simple-1", "simple-2", "simple-3", "simple-4", "simple-5"]
.However, when I tried to run on my code, it returns compile error:
This is my environment:
serde
Could you check this error?