You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
DavidOConnor 1b56aa1e7c Post-publish push 6 years ago
.idea tweaks to readme, and added a bit more functionality to lib 6 years ago
src Post-publish push 6 years ago
.gitignore tweaks to readme, and added a bit more functionality to lib 6 years ago
Cargo.toml tweaks to readme, and added a bit more functionality to lib 6 years ago
README.md Post-publish push 6 years ago
build.ps1 Minor updates 6 years ago
build.sh Minor updates 6 years ago
index.html Post-publish push 6 years ago
wasm-pack.log Post-publish push 6 years ago

README.md

Seed Quickstart

To get started, clone this repo, and make the following changes:

  • Rename your crate in Cargo.toml (The name field under [Package])

  • Replace both occurances of appname (/appname.js and /appname.wasm) in index.html with your crate's name.

  • Make the same replacement in either build.sh, or build.ps1, depending on your operating system (.sh for Linux, .ps1 for Windows). You may delete the other one.

  • If you don't have Rust installed, nightly set up, and wasm-bindgen, Download it, and run the following commands:

rustup update

rustup default nightly

rustup target add wasm32-unknown-unknown --toolchain nightly

cargo +nightly install wasm-bindgen-cli

  • Run build.sh or build.ps1, then open index.html in a web browser, or use a local server. (Opening the file directly may not work in some browsers.)