rhaiscript / rhai

Rhai - An embedded scripting language for Rust.
https://crates.io/crates/rhai
Apache License 2.0
3.79k stars 177 forks source link

Running untrusted scripts #127

Closed KaiserKarel closed 4 years ago

KaiserKarel commented 4 years ago

Is rhai properly sandboxed, akin to Wasm? Meaning that I can safely run arbitrary scripts provided by users?

This might be same valuabe information for the readme as well.

schungx commented 4 years ago

Yes, it is sandboxed. Only expose functions that you allow the script to call.

See https://github.com/jonathandturner/rhai/issues/102

KaiserKarel commented 4 years ago

Thanks for the quick response!