Skip to content

Latest commit

 

History

History
35 lines (16 loc) · 641 Bytes

README.markdown

File metadata and controls

35 lines (16 loc) · 641 Bytes

Packing

wasm-pack build --no-typescript --dev --target web --scope plaintext --out-name sdk

or

./scripts/pack-it.sh

Reference to 'wasm-pack' build options: https://rustwasm.github.io/docs/wasm-pack/commands/build.html

Nightly

This needs to run on nightly to force clear_on_drop to not use cc compiler for wasm.

rustup toolchain install nightly rustup override set nightly

WASM

rustup target add wasm32-unknown-unknown

cargo check --target wasm32-unknown-unknown

cargo build --target wasm32-unknown-unknown

Copyright

go get -u github.com/fbiville/headache/cmd/headache
headache