Crate herolib_do

Crate herolib_do 

Source
Expand description

herolib-do library

This module exposes the core functionality of herodo for use as a library, enabling script execution from other Rust code and integration tests.

§Shebang Support

Scripts can be made directly executable using a shebang line:

#!/usr/bin/env herodo

print("Hello from herodo!");

Then make the script executable and run it:

chmod +x script.rhai
./script.rhai

The shebang line is automatically stripped before execution.

Enums§

HerodoError
Error type for herodo operations

Functions§

eval
Evaluate a script and return the result
run
Run a Rhai script from a file path
run_script
Run a script from a string

Type Aliases§

Result
Result type for herodo operations