arora-module 2.3.0

Write an Arora module in Rust: the declaration macros and the traits they implement.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! The `arora:module` world the guest bindings are generated from is the one
//! the engine hosts components against.

#[test]
fn the_guest_and_the_engine_share_one_world() {
    let guest = include_str!("../wit/arora-module.wit");
    let engine = std::fs::read_to_string(concat!(
        env!("CARGO_MANIFEST_DIR"),
        "/../arora-engine/wit/arora-module.wit"
    ))
    .expect("the engine's world, beside this crate in the workspace");
    assert_eq!(
        guest, engine,
        "wit/arora-module.wit differs from arora-engine's"
    );
}