rhai 0.13.0

Embedded scripting for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// This script runs 1 million iterations
// to test the speed of the scripting engine.

let now = timestamp();
let x = 1_000_000;

print("Ready... Go!");

while x > 0 {
    x = x - 1;
}

print("Finished. Run time = " + now.elapsed() + " seconds.");