0.1.0 • Published 1 year ago
@cgojin/rust-on-browser v0.1.0
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
References
0.1.0
1 year ago