arora-engine 5.1.0

The Arora engine: loads and executes Arora modules (wasm and native hosts).
extern crate cbindgen;

use std::env;

fn main() {
    let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();

    println!("cargo:rerun-if-changed=build.rs");

    // cbindgen generates the C ABI header; the browser host has no C ABI.
    if env::var("CARGO_CFG_TARGET_ARCH").as_deref() == Ok("wasm32") {
        return;
    }

    cbindgen::Builder::new()
        .with_crate(crate_dir)
        .generate()
        .expect("Unable to generate bindings")
        .write_to_file("../../target/include/arora/arora.h");
}