5 releases

0.1.4 Dec 25, 2020
0.1.3 Dec 13, 2020
0.1.2 Dec 6, 2020
0.1.1 Dec 6, 2020
0.1.0 Dec 2, 2020

#148 in #worker

MIT license

7KB
120 lines

# WebWorker - work in progress

crates.io Released API docs GHA Build Status

WebWorker is a simple web server for a wasm

Request -> CF Worker -> WebWorker -> Response

## Example

let mut router = Router::new();
router.get("/", Box::new(index));
let mut ww = WebWorker::new();
ww.mount(router);
ww.handle(request)

Test

wasm-pack test --chrome


lib.rs:

WebWorker is a simple web server for a worker optimize

# Example

let mut router = Router::new();
router.get("/", Box::new(index));
let mut ww = WebWorker::new();
ww.mount(router);
ww.handle(request)

Dependencies

~7.5–10MB
~182K SLoC