@cgojin/rust-on-browser
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @cgojin/rust-on-browser

Weekly Downloads

1

Version

0.1.0

License

MIT/Apache-2.0

Unpacked Size

22.9 kB

Total Files

7

Last publish

Collaborators

  • cgojin