dunnock / wasi-worker

WASM / WASI interface for browser service workers
MIT License
56 stars 3 forks source link

Improve ergonomics moving message_ready function inside the lib #3

Closed dunnock closed 4 years ago

dunnock commented 4 years ago

Move following function inside the wasi-worker lib, so that is not required in the worker's boilerplate:

#[no_mangle]
pub extern "C" fn message_ready() -> usize {
  ServiceWorker::on_message()
    .expect("ServiceWorker.on_message")
}
dunnock commented 4 years ago

This was fixed as part of https://github.com/dunnock/wasi-worker/commit/35f4d73d5bce1339d9c8c402b3ae9f27b69ff0a8