Skip to content

calcit-lang/wasi-calcit

Repository files navigation

WASI Calcit

Calcit(0.7.0-a3) package on WASI, bundled Calcit-rs without watcher and injections.

Usage

wapm install calcit/wasi-calcit

wcr --dir=. # trys to run `compact.cirru`

wcr -e 'range 100' # eval mode

Develop

cargo build --target wasm32-wasi
wasmer run --mapdir examples/:examples/ target/wasm32-wasi/debug/wasi-calcit.wasm -- examples/compact.cirru

or:

cargo build --target wasm32-wasi --release
cp target/wasm32-wasi/release/wasi-calcit.wasm builds
wapm run wcr -e 'range 100'
wapm run wcr --dir=examples examples/compact.cirru
wapm run wcr --dir=./ examples/compact.cirru --emit-js

More...

Check out https://github.com/calcit-lang/calcit-wasm-play for browser version.