harn-kernel 0.10.165

Portable compiler, program artifact, and deterministic execution kernel for Harn
Documentation
//! Export the owning portable corpus for checks of the packaged Wasm runtime.

include!("../testdata/portable_conformance.rs");

fn main() {
    let pure: Vec<_> = PURE_CASES
        .iter()
        .map(|case| {
            serde_json::json!({
                "id": case.id,
                "source": case.source,
                "entry": case.entry,
                "input_json": case.input_json,
                "expected_json": case.expected_json,
            })
        })
        .collect();
    let failures: Vec<_> = RUNTIME_FAILURE_CASES
        .iter()
        .map(|case| {
            serde_json::json!({
                "id": case.id,
                "source": case.source,
                "entry": case.entry,
                "input_json": case.input_json,
                "expected_code": case.expected_code,
            })
        })
        .collect();
    println!(
        "{}",
        serde_json::json!({"pure": pure, "failures": failures})
    );
}