Minor updates
parent
907f5c2442
commit
6f14f54e22
@ -1,3 +1,6 @@
|
||||
/target
|
||||
**/*.rs.bk
|
||||
Cargo.lock
|
||||
|
||||
**/pkg/*
|
||||
**/.wasm
|
@ -0,0 +1,13 @@
|
||||
# Rebar Quickstart
|
||||
|
||||
To get started with Rebar, 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, `.ps` for Windows). You may delete the other one
|
||||
|
||||
You may also wish to replace the contents of this file.
|
@ -0,0 +1,2 @@
|
||||
cargo build --target wasm32-unknown-unknown
|
||||
wasm-bindgen target/wasm32-unknown-unknown/debug/appname.wasm --no-modules --out-dir ./pkg
|
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
cargo build --target wasm32-unknown-unknown
|
||||
wasm-bindgen target/wasm32-unknown-unknown/debug/appname.wasm --no-modules --out-dir ./pkg
|
Loading…
Reference in New Issue