836ab9f126
* Add new web-based std::fs replacement, localstoragefs: https://github.com/iceiix/localstoragefs * Add std_or_web to switch between std::fs (native) or localstoragefs (web) * Update www readme for new missing glutin/winit links, opens issue #171 |
||
---|---|---|
.. | ||
.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 missing web support from critical dependencies, at least:
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
wasm-pack build
Running
After building the Rust app, run the NodeJS web server as follows:
cd pkg
npm link
cd ..
cd www
npm link stevenarella
npm install
npm start
open http://localhost:8080/
Credits
Based on [rustwasm/create-wasm-app](https://github.com/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.