0.1.2 • Published 3 years ago
cesride-wasm v0.1.2
WASM FFI for CESRIDE
How to build with wasm-pack
Install wasm-pack from https://rustwasm.github.io/wasm-pack/installer/ and then
wasm-pack build # Will output modules best-suited to be bundled with webpack
wasm-pack build --target=nodejs # Will output modules that can be directly consumed by NodeJS
wasm-pack build --target=web # Will output modules that can be directly consumed in browser without bundler usageRun NodeJS demo
cd demo/node
yarn install
yarn startRun demo in Browser
cd demo/web
yarn install
yarn serveand then visit http://localhost:8080 in a browser should run the example!