mirror of
https://github.com/tlsnotary/wasm-tokio.git
synced 2026-01-09 00:17:54 -05:00
main
Wasm-Tokio Example
This is a test project to run KOS OT rand_setup in the browser using WASM, making use of a
single-threaded tokio runtime and multiple rayon threads.
How to run it
Requirements
- Install google-chrome browser.
- Install simple-http-server
- Install wasm-pack
Run
# Build wasm modules and js wrapper
wasm-pack build -t web -d www/pkg --release
# Serve files
simple-http-server --ip 127.0.0.1 --nocache -t1 -i --coop --coep www
Now open Chrome at localhost:8000. You should see some messages in the
console.
Description
Languages
Rust
62.3%
HTML
24.5%
JavaScript
13.2%