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