@cgojin/rust-on-browser
v0.1.0
Published
Running Rust on Browser, Calling Rust from Javascript, Rust to WebAssembly (WASM) example
Downloads
2
Readme
rust-on-browser
Running Rust on Browser, Calling Rust from Javascript, Rust to WebAssembly (WASM) example.
Building package
# Install wasm-pack first
cargo install wasm-pack
wasm-pack build
# Building package with scope
wasm-pack build --scope cgojin
Publishing package
# https://www.npmjs.com/signup
npm adduser
cd pkg
# publish the package to npmjs.com
npm publish --access=public
Running example
cd site
# Installing dependencies first
npm install
# Start http server
npm start