3 releases (breaking)
Uses new Rust 2021
0.3.0 | Dec 30, 2022 |
---|---|
0.2.0 | Aug 14, 2022 |
0.1.0 | May 21, 2022 |
#127 in Games
34 downloads per month
6KB
62 lines
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)
}
lib.rs
:
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)
}
Dependencies
~740KB
~13K SLoC