-
Install the wasm toolchain
$ rustup default nightly
$ rustup update
$ rustup component add wasm32-unknown-unknown --toolchain nightly
$ cargo install --git https://github.com/alexcrichton/wasm-gc
Run $rustup update
periodically to update the toolchain.
See cargo-cljs for more details.
$ npm install
$ clj -A:build-dev
Once it has fired up..
(in-ns 'app.core)
(build)
;; ...wait while rust compiles the demo app. Devtools should give you pretty green message when it's ready.
(echo ["hello" "wasm"]) ;=> [nil ["hello" "wasm"]]
This repo is basically the electron quick start with figwheel pasted in.