This repository has been archived on 2025-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
rhaj/database/main.rs
2025-04-04 08:28:07 +02:00

11 lines
274 B
Rust

use rhai::{Engine};
use std::path::{Path, PathBuf};
fn main() -> Result<(), Box<rhai::EvalAltResult>> {
let engine = Engine::new();
// Rhai's import system works relative to current working dir
engine.eval_file::<()>(PathBuf::from("main.rhai"))?;
Ok(())
}