24b6d84414
* Bump elliptic to 6.5.4. Closes #520 * Bump y18n to 4.0.1. Closes #528 * Bump ssri to 6.0.2. Closes #531 * Bump url-parse to 1.5.1. Closes #536 * Bump lodash to 4.17.21. Closes #537 |
||
---|---|---|
.. | ||
.gitignore | ||
README.md | ||
bootstrap.js | ||
index.html | ||
index.js | ||
package-lock.json | ||
package.json | ||
webpack.config.js |
README.md
stevenarella-web
Web app for running Stevenarella as WebAssembly
Status: very incomplete. It currently compiles but does not run, due to required modifications to adapt to the web, for progress see: 🕸️ Web support
Building
To build for wasm32-unknown-unknown, run in the top-level directory (not www):
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli
cargo install wasm-pack
cp -vr resources-*/assets/minecraft/* resources/assets/minecraft && git checkout resources
wasm-pack build --dev
or:
cargo web start --target wasm32-unknown-unknown
Running
After building the Rust app, run the NodeJS web server as follows:
cd pkg
sudo npm link
cd ..
cd www
npm link stevenarella
npm install
npm start
open http://localhost:8080/
Credits
Based on rustwasm/create-wasm-app:
An
npm init
template for kick starting a project that uses NPM packages containing Rust-generated WebAssembly and bundles them with Webpack.