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.
1ae2c8e160 | 6 years ago | |
---|---|---|
.idea | 6 years ago | |
src | 6 years ago | |
.gitignore | 6 years ago | |
Cargo.toml | 6 years ago | |
README.md | 6 years ago | |
build.ps1 | 6 years ago | |
build.sh | 6 years ago | |
index.html | 6 years ago | |
wasm-pack.log | 6 years ago |
README.md
Seed Quickstart
To get started:
-
Clone this repo
-
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
orbuild.ps1
, then openindex.html
in a web browser, or use a local server. (Opening the file directly may not work in some browsers.)
Once you rename the crate in Cargo.toml
(The name
field under [Package]
), make the
following changes:
-
Replace both occurances of
appname
(/appname.js
and/appname.wasm
) inindex.html
with your crate's name. -
Make the same replacement in either
build.sh
, orbuild.ps1
, depending on your operating system. You may delete the other one.