Crate oc_wasm_cassette

source ·
Expand description

OC-Wasm-Cassette provides a convenient wrapper that makes it easy to use an async fn as a top-level function in an OC-Wasm application.

Usage is as simple as:

async fn main() -> Infallible {
    // Your code here
}

#[no_mangle]
pub extern "C" fn run(arg: i32) -> i32 {
    oc_wasm_cassette::run(arg, main)
}

Functions§

  • Runs the application for a period of time.