oc-wasm-cassette

Crates.iooc-wasm-cassette
lib.rsoc-wasm-cassette
version0.12.1
sourcesrc
created_at2022-05-21 20:47:00.421775
updated_at2024-06-08 07:29:00.505288
descriptionProvides a convenient entry point wrapper for an OC-Wasm application to use Cassette as an async executor
homepage
repositoryhttps://gitlab.com/Hawk777/oc-wasm-rust
max_upload_size
id590862
size6,502
Christopher Head (Hawk777)

documentation

README

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)
}
Commit count: 277

cargo fmt