| Crates.io | oc-wasm-cassette |
| lib.rs | oc-wasm-cassette |
| version | 0.12.1 |
| created_at | 2022-05-21 20:47:00.421775+00 |
| updated_at | 2024-06-08 07:29:00.505288+00 |
| description | Provides a convenient entry point wrapper for an OC-Wasm application to use Cassette as an async executor |
| homepage | |
| repository | https://gitlab.com/Hawk777/oc-wasm-rust |
| max_upload_size | |
| id | 590862 |
| size | 6,502 |
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)
}