use rhai::{Engine, EvalAltResult, INT}; fn main() -> Result<(), Box> { let engine = Engine::new(); engine.run(r#"print("hello, world!")"#)?; let result = engine.eval::("40 + 2")?; println!("Answer: {}", result); // prints 42 Ok(()) }